fix yet another small glitch
authorTim Janik <timj@src.gnome.org>
Sun, 17 Jan 1999 05:05:08 +0000 (05:05 +0000)
committerTim Janik <timj@src.gnome.org>
Sun, 17 Jan 1999 05:05:08 +0000 (05:05 +0000)
ghook.c
glib/ghook.c

diff --git a/ghook.c b/ghook.c
index 4464db4..fae6927 100644 (file)
--- a/ghook.c
+++ b/ghook.c
@@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
       if (hook_list->hook_destroy)
        hook_list->hook_destroy (hook_list, hook);
       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 */
     }
 }
index 4464db4..fae6927 100644 (file)
@@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
       if (hook_list->hook_destroy)
        hook_list->hook_destroy (hook_list, hook);
       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 */
     }
 }