* src/modest-mail-operation.c:
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 1 Jul 2008 14:15:10 +0000 (14:15 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 1 Jul 2008 14:15:10 +0000 (14:15 +0000)
* Avoid leaking a reference on getting new headers.

pmo-trunk-r4844

src/modest-mail-operation.c

index 23c6136..7691b5f 100644 (file)
@@ -1197,7 +1197,7 @@ static void
 foreach_add_item (gpointer header, gpointer user_data)
 {
        tny_list_prepend (TNY_LIST (user_data), 
-                         g_object_ref (G_OBJECT (header)));
+                         G_OBJECT (header));
 }
 
 /* This is the method that looks for new messages in a folder */