modest-tny-msg: fixed leak in add_images()
authorAlberto Garcia <agarcia@igalia.com>
Fri, 14 Dec 2007 11:16:56 +0000 (11:16 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Fri, 14 Dec 2007 11:16:56 +0000 (11:16 +0000)
pmo-trunk-r3916

src/modest-tny-msg.c

index a16c9a9..6e77d81 100644 (file)
@@ -331,6 +331,7 @@ add_images (TnyMsg *msg, GList *images_list)
        if (related_part != NULL) {
                /* TODO: attach images in their proper place */
                add_attachments (related_part, images_list, TRUE);
+               g_object_unref (related_part);
        }
 }