[Galago-commits] r3022 - trunk/notification-daemon/src/daemon

galago-commits at freedesktop.org galago-commits at freedesktop.org
Thu Nov 20 02:44:23 PST 2008


Author: chipx86
Date: 2008-11-20 02:44:22 -0800 (Thu, 20 Nov 2008)
New Revision: 3022

Modified:
   trunk/notification-daemon/src/daemon/engines.c
Log:
Reuse code.


Modified: trunk/notification-daemon/src/daemon/engines.c
===================================================================
--- trunk/notification-daemon/src/daemon/engines.c	2008-11-20 10:33:13 UTC (rev 3021)
+++ trunk/notification-daemon/src/daemon/engines.c	2008-11-20 10:44:22 UTC (rev 3022)
@@ -121,11 +121,8 @@
 	if (active_engine == NULL)
 		return;
 
-	active_engine->ref_count--;
+	theme_engine_unref(active_engine);
 
-	if (active_engine->ref_count == 0)
-		destroy_engine(active_engine);
-
 	/* This is no longer the true active engine, so reset this. */
 	active_engine = NULL;
 }



More information about the galago-commits mailing list