From 815c8776bbeee8e937db73c2006846ab9606ffb0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 1 Jun 2013 08:32:37 -0400 Subject: GnomeCalendar: Fix a potential reference leak. --- calendar/gui/gnome-cal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 4afafd475b..255851318f 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1288,10 +1288,9 @@ gnome_cal_get_client_view_cb (GObject *source_object, g_warning ("%s: %s", G_STRFUNC, local_error->message); g_error_free (local_error); } - - g_object_unref (gcal); } + g_clear_object (&gcal); g_clear_object (&client_view); view_data_unref (view_data); -- cgit