aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-01 20:32:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-01 22:30:47 +0800
commit2a147de5a11defeec02bd9abad330b453916d378 (patch)
tree11438771477c448d2e1288b09bf9338e20e58af9
parent01ae1fb37d679c97dcc90f3033e65c7ccc5c0d4a (diff)
downloadgsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar.gz
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar.bz2
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar.lz
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar.xz
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.tar.zst
gsoc2013-evolution-2a147de5a11defeec02bd9abad330b453916d378.zip
GnomeCalendar: Fix a potential reference leak.
(cherry picked from commit 815c8776bbeee8e937db73c2006846ab9606ffb0)
-rw-r--r--calendar/gui/gnome-cal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index cccdc3fca6..442ee98932 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);