fixed buglet that could cause bogus warnings.
authorTim Janik <timj@gtk.org>
Tue, 22 Dec 1998 10:09:28 +0000 (10:09 +0000)
committerTim Janik <timj@src.gnome.org>
Tue, 22 Dec 1998 10:09:28 +0000 (10:09 +0000)
Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>

        * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
        warnings.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
ghook.c
glib/ghook.c

index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index 07e496168b0257780a005cef75d15cfa454345f3..1daff076e8d6eb3d0829d14cabdc5bc6294623c0 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>
+
+       * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+       warnings.
+
 Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
diff --git a/ghook.c b/ghook.c
index 8705e63b9bcc2622658a2cc8ef101001661046e5..b9d7adbd0191507d6c6b3cae531139941a65fe7f 100644 (file)
--- a/ghook.c
+++ b/ghook.c
@@ -408,9 +408,9 @@ g_hook_first_valid (GHookList *hook_list,
       GHook *hook;
       
       hook = hook_list->hooks;
-      g_hook_ref (hook_list, hook);
       if (hook)
        {
+         g_hook_ref (hook_list, hook);
          if (G_HOOK_IS_VALID (hook) && (may_be_in_call || !G_HOOK_IN_CALL (hook)))
            return hook;
          else
index 8705e63b9bcc2622658a2cc8ef101001661046e5..b9d7adbd0191507d6c6b3cae531139941a65fe7f 100644 (file)
@@ -408,9 +408,9 @@ g_hook_first_valid (GHookList *hook_list,
       GHook *hook;
       
       hook = hook_list->hooks;
-      g_hook_ref (hook_list, hook);
       if (hook)
        {
+         g_hook_ref (hook_list, hook);
          if (G_HOOK_IS_VALID (hook) && (may_be_in_call || !G_HOOK_IN_CALL (hook)))
            return hook;
          else