[Gnucash-changes] Fix the gnc-hook shutdown code.

Derek Atkins warlord at cvs.gnucash.org
Mon Jul 25 14:46:55 EDT 2005


Log Message:
-----------
Fix the gnc-hook shutdown code.

	* src/engine/gnc-hooks.c: Call the correct API to delete a hook
	  so we don't throw an error at shutdown.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/engine:
        gnc-hooks.c

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.252
retrieving revision 1.1487.2.253
diff -LChangeLog -LChangeLog -u -r1.1487.2.252 -r1.1487.2.253
--- ChangeLog
+++ ChangeLog
@@ -8,6 +8,9 @@
 	  in terms of the new metatype.  QOF_TYPE_COLLECT is absolutely
 	  the WRONG answer for GNC_ID_OWNER.
 
+	* src/engine/gnc-hooks.c: Call the correct API to delete a hook
+	  so we don't throw an error at shutdown.
+
 2005-07-24  David Hampton  <hampton at employees.org>
 
 	* various src/backend and src/business/business-core: Add gchar*
Index: gnc-hooks.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/Attic/gnc-hooks.c,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -Lsrc/engine/gnc-hooks.c -Lsrc/engine/gnc-hooks.c -u -r1.1.2.8 -r1.1.2.9
--- src/engine/gnc-hooks.c
+++ src/engine/gnc-hooks.c
@@ -158,7 +158,7 @@
     return;
   }
 
-  g_hook_unref(gnc_hook->c_danglers, hook);
+  g_hook_destroy_link(gnc_hook->c_danglers, hook);
   LEAVE("Removed %p from %s", hook, name);
 }
 
@@ -251,7 +251,7 @@
     return;
   }
 
-  g_hook_unref(gnc_hook->scm_danglers, hook);
+  g_hook_destroy_link(gnc_hook->scm_danglers, hook);
   LEAVE("Removed dangler from %s", name);
 }
 


More information about the gnucash-changes mailing list