GNOME Bugzilla – Bug 669372
glib/tests memory leaks.
Last modified: 2012-02-15 09:42:38 UTC
memory leaks in gdatetime.c & hash.c
Created attachment 206772 [details] [review] glib/tests: fix memory leak
Created attachment 206920 [details] [review] fix a memory leak in mainloop test file
Review of attachment 206772 [details] [review]: Both look correct.
Review of attachment 206920 [details] [review]: Hmm, so the mainloop functions were just uninitialized? This looks correct to me. ::: glib/tests/mainloop.c @@ +84,3 @@ g_assert (g_source_get_priority (source) == G_PRIORITY_HIGH); + g_source_unref (source); One thing I would do here though is move this _unref() up to right below the _attach(). That's a common pattern with GSource. I'll take care of this before pushing.
Attachment 206772 [details] pushed as bd79c00 - glib/tests: fix memory leak