Fixes RefNULL 10/14
authorSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:36:03 +0000 (09:36 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:36:03 +0000 (09:36 +0000)
pmo-trunk-r8236

src/modest-tny-folder.c

index 9e6dbf0..2441711 100644 (file)
@@ -467,8 +467,7 @@ modest_tny_folder_has_subfolder_with_name (TnyFolderStore *parent,
        }
 
        /* free */
        }
 
        /* free */
-       if (iter != NULL)
-               g_object_unref (iter);
+       g_object_unref (iter);
        g_object_unref (subfolders);
 
        return has_name;
        g_object_unref (subfolders);
 
        return has_name;