[Galago-commits] r2893 - in trunk/libgalago: . libgalago

galago-commits at freedesktop.org galago-commits at freedesktop.org
Tue Aug 29 12:48:54 PDT 2006


Author: chipx86
Date: 2006-08-29 12:48:45 -0700 (Tue, 29 Aug 2006)
New Revision: 2893

Modified:
   trunk/libgalago/ChangeLog
   trunk/libgalago/NEWS
   trunk/libgalago/libgalago/galago-core.c
Log:
Patch by Ross Burton to set _core to NULL when it has been destroyed.


Modified: trunk/libgalago/ChangeLog
===================================================================
--- trunk/libgalago/ChangeLog	2006-08-01 02:40:51 UTC (rev 2892)
+++ trunk/libgalago/ChangeLog	2006-08-29 19:48:45 UTC (rev 2893)
@@ -1,3 +1,8 @@
+Tue Aug 29 12:47:33 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* libgalago/galago-core.c:
+	  - Patch by Ross Burton to set _core to NULL when it has been destroyed.
+
 Tue Jul 11 19:29:01 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	* libgalago/galago-presence.c:

Modified: trunk/libgalago/NEWS
===================================================================
--- trunk/libgalago/NEWS	2006-08-01 02:40:51 UTC (rev 2892)
+++ trunk/libgalago/NEWS	2006-08-29 19:48:45 UTC (rev 2893)
@@ -1,6 +1,8 @@
 version 0.5.2:
 	* Fixed a crash when passing an idle start time of 0 to
 	  galago_presence_set_idle(). (Bug #64)
+	* Fixed a problem where the _core pointer wasn't being set to NULL after
+	  a call to galago_uninit().
 	* Fixed some invalid return values from galago_presence_compare() when
 	  one of the parameters was NULL or when one account was idle and the
 	  other was not.

Modified: trunk/libgalago/libgalago/galago-core.c
===================================================================
--- trunk/libgalago/libgalago/galago-core.c	2006-08-01 02:40:51 UTC (rev 2892)
+++ trunk/libgalago/libgalago/galago-core.c	2006-08-29 19:48:45 UTC (rev 2893)
@@ -968,7 +968,10 @@
 	_core->priv->init_ref_count--;
 
 	if (_core->priv->init_ref_count == 0)
+	{
 		galago_object_destroy(GALAGO_OBJECT(_core));
+		_core = NULL;
+	}
 }
 
 /**



More information about the galago-commits mailing list