Check for NULL finalizer. (#476849, Areg Beketovski)

2007-09-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/ghook.c (g_hook_free): Check for NULL finalizer. (#476849, Areg
        Beketovski)


svn path=/trunk/; revision=5776
This commit is contained in:
Behdad Esfahbod 2007-09-19 20:36:53 +00:00 committed by Behdad Esfahbod
parent fda8f9e5cf
commit 5fa8c6ef89
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-09-19 Behdad Esfahbod <behdad@gnome.org>
* glib/ghook.c (g_hook_free): Check for NULL finalizer. (#476849, Areg
Beketovski)
2007-09-19 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -130,6 +130,7 @@ g_hook_free (GHookList *hook_list,
g_return_if_fail (G_HOOK_IS_UNLINKED (hook));
g_return_if_fail (!G_HOOK_IN_CALL (hook));
if(hook_list->finalize_hook != NULL)
hook_list->finalize_hook (hook_list, hook);
g_slice_free1 (hook_list->hook_size, hook);
}