mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
fda8f9e5cf
commit
5fa8c6ef89
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user