aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2011-10-01 07:02:13 +0800
committerDan Vrátil <dvratil@redhat.com>2011-10-01 07:02:13 +0800
commitd58d259aa0cfb513ea165cedd558561890656d65 (patch)
treea0a93116c93ada8dae90cd573b451d6ee0e311a4 /e-util
parentd8487201c11c7dc9db84dab2100a4c8bfcc13272 (diff)
downloadgsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.gz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.bz2
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.lz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.xz
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.tar.zst
gsoc2013-evolution-d58d259aa0cfb513ea165cedd558561890656d65.zip
Fix two little memory leaks
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-plugin-ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/e-util/e-plugin-ui.c b/e-util/e-plugin-ui.c
index 745a931954..3ac9eb92db 100644
--- a/e-util/e-plugin-ui.c
+++ b/e-util/e-plugin-ui.c
@@ -522,7 +522,8 @@ e_plugin_ui_hook_init (EPluginUIHook *hook)
(GDestroyNotify) g_free,
(GDestroyNotify) g_free);
- registry = g_hash_table_new (g_direct_hash, g_direct_equal);
+ registry = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+ NULL, (GDestroyNotify) g_hash_table_destroy);
hook->priv = G_TYPE_INSTANCE_GET_PRIVATE (
hook, E_TYPE_PLUGIN_UI_HOOK, EPluginUIHookPrivate);