mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-06 09:23:39 +02:00
fix yet another small glitch
This commit is contained in:
3
ghook.c
3
ghook.c
@@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
|
|||||||
if (hook_list->hook_destroy)
|
if (hook_list->hook_destroy)
|
||||||
hook_list->hook_destroy (hook_list, hook);
|
hook_list->hook_destroy (hook_list, hook);
|
||||||
else if (hook->destroy)
|
else if (hook->destroy)
|
||||||
|
{
|
||||||
hook->destroy (hook->data);
|
hook->destroy (hook->data);
|
||||||
|
hook->destroy = NULL;
|
||||||
|
}
|
||||||
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
|
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
|
|||||||
if (hook_list->hook_destroy)
|
if (hook_list->hook_destroy)
|
||||||
hook_list->hook_destroy (hook_list, hook);
|
hook_list->hook_destroy (hook_list, hook);
|
||||||
else if (hook->destroy)
|
else if (hook->destroy)
|
||||||
|
{
|
||||||
hook->destroy (hook->data);
|
hook->destroy (hook->data);
|
||||||
|
hook->destroy = NULL;
|
||||||
|
}
|
||||||
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
|
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user