Fixes RevNULL 2/14
authorSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:35:36 +0000 (09:35 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:35:36 +0000 (09:35 +0000)
pmo-trunk-r8229

src/modest-tny-msg.c

index 6063c63..b64155a 100644 (file)
@@ -868,8 +868,7 @@ modest_tny_msg_create_reply_msg (TnyMsg *msg,
                g_list_foreach (attachments_list, (GFunc) g_object_unref, NULL);
                g_list_free (attachments_list);
        }
-       if (parts)
-               g_object_unref (G_OBJECT (parts));
+       g_object_unref (parts);
 
        /* Fill the header */
        if (header)