diff options
author | James Booth <boothj5@gmail.com> | 2016-07-18 22:55:05 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-07-18 22:55:05 +0100 |
commit | 269b8ce83225d98f683ff12f06847ea224788f06 (patch) | |
tree | b12ea3950237330415e25721aa5f247426e316fd /src | |
parent | 7d742f704fd495fc6b4cda85e0ee0f517bb77797 (diff) | |
parent | feb50ea41174af94d67332cd9baf95506e1483a7 (diff) | |
download | profani-tty-269b8ce83225d98f683ff12f06847ea224788f06.tar.gz |
Merge branch 'master' into python3
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 3 | ||||
-rw-r--r-- | src/xmpp/capabilities.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index a4b53bf1..d5f63846 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6059,13 +6059,14 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args) return TRUE; } - char *plugin_name = basename(filename); + gchar *plugin_name = g_path_get_basename(filename); gboolean result = plugins_install(plugin_name, filename); if (result) { cons_show("Plugin installed: %s", plugin_name); } else { cons_show("Failed to install plugin: %s", plugin_name); } + g_free(plugin_name); return TRUE; } else if (g_strcmp0(args[0], "load") == 0) { diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index b4a6467b..7ba0565d 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -87,8 +87,8 @@ caps_init(void) g_key_file_load_from_file(cache, cache_loc, G_KEY_FILE_KEEP_COMMENTS, NULL); - jid_to_ver = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - jid_to_caps = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)caps_destroy); + jid_to_ver = g_hash_table_new_full(g_str_hash, g_str_equal, free, free); + jid_to_caps = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)caps_destroy); my_sha1 = NULL; } |