GdkPixbuf *pixbuf;
guint64 size;
GError *error = NULL;
-
+
size = 0;
loader = gdk_pixbuf_loader_new_with_mime_type (mime_type, NULL);
priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (self);
+ g_object_ref (self);
for (iter = tny_list_create_iterator (attachments);
!tny_iterator_is_done (iter);
tny_iterator_next (iter)) {
g_object_unref (part);
}
g_object_unref (iter);
+ g_object_unref (self);
}
static void
ModestMsgEditWindowPrivate *priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (self);
content_type = tny_mime_part_get_content_type (TNY_MIME_PART (msg));
-
+
if (content_type && !g_strcasecmp (content_type, "multipart/related")) {
parent = g_object_ref (msg);
} else if (content_type && !g_strcasecmp (content_type, "multipart/mixed")) {
}
gtk_widget_destroy (dialog);
+ g_object_ref (window);
/* The operation could take some time so allow the dialog to be closed */
while (gtk_events_pending ())
gtk_main_iteration ();
}
}
-
-
+ g_object_unref (window);
}
static void