summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-09-17 11:49:16 +0200
committerStef Walter <stefw@gnome.org>2014-10-14 17:55:44 +0200
commit8ea8329cc09e263d9628e791e0f5a464bde63413 (patch)
tree19ae74ea8e15564c0293d0e0198ef14cd2996d89 /egg
parent9af2db3f41e713c02e36dc71f0d6295db7d9e408 (diff)
downloadgnome-keyring-8ea8329cc09e263d9628e791e0f5a464bde63413.tar.gz
egg-cleanup: Don't leak 'cleanup' on unregister
When unregistering a cleanup instance, the memory allocated for the cleanup was not freed causing a memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=738508
Diffstat (limited to 'egg')
-rw-r--r--egg/egg-cleanup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/egg/egg-cleanup.c b/egg/egg-cleanup.c
index 3d06ef66..3dec665b 100644
--- a/egg/egg-cleanup.c
+++ b/egg/egg-cleanup.c
@@ -52,6 +52,7 @@ egg_cleanup_unregister (GDestroyNotify notify, gpointer user_data)
cleanup = (EggCleanup*)l->data;
if (cleanup->notify == notify && cleanup->user_data == user_data) {
registered_cleanups = g_slist_remove (registered_cleanups, cleanup);
+ g_free (cleanup);
break;
}
}