edit-dialog: fix ref leak when selecting a calendar

This commit is contained in:
Erick Pérez Castellanos
2015-03-06 10:35:25 -05:00
parent 8589cde0f5
commit 9f20c3f2f9
+2 -1
View File
@@ -201,7 +201,8 @@ on_calendar_selected (GtkWidget *menu_item,
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->source_image), pix);
g_object_unref (pix);
priv->source = source;
if (priv->source != NULL)
g_set_object (&(priv->source), source);
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->titlebar),
e_source_get_display_name (priv->source));
break;