evolution r36011 - in trunk/calendar: . gui



Author: msuman
Date: Mon Aug 18 05:14:43 2008
New Revision: 36011
URL: http://svn.gnome.org/viewvc/evolution?rev=36011&view=rev

Log:
Milan Crha  <mcrha redhat com> ** Part of fix for bug #462242 (Do not unref NULL pointers).

Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/gnome-cal.c

Modified: trunk/calendar/gui/gnome-cal.c
==============================================================================
--- trunk/calendar/gui/gnome-cal.c	(original)
+++ trunk/calendar/gui/gnome-cal.c	Mon Aug 18 05:14:43 2008
@@ -2870,7 +2870,8 @@
 		g_hash_table_remove (priv->clients[source_type], e_source_peek_uid (source));
 
 		/* FIXME Is there a better way to handle this? */
-		g_object_unref (priv->default_client[source_type]);
+		if (priv->default_client[source_type])
+			g_object_unref (priv->default_client[source_type]);
 		priv->default_client[source_type] = NULL;
 
 		g_signal_emit (gcal, gnome_calendar_signals[SOURCE_REMOVED], 0, source_type, source);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]