* Fixes NB#90487, added a NULL check
authorSergio Villar Senin <svillar@igalia.com>
Mon, 27 Oct 2008 18:33:19 +0000 (18:33 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 27 Oct 2008 18:33:19 +0000 (18:33 +0000)
pmo-trunk-r6168

src/hildon2/modest-connection-specific-smtp-window.c
src/maemo/modest-connection-specific-smtp-window.c

index 4b95597..dc54c90 100644 (file)
@@ -209,7 +209,8 @@ modest_connection_specific_smtp_window_fill_with_connections (ModestConnectionSp
                                MODEL_COL_SERVER_ACCOUNT_NAME, server_account_name,
                                -1);
                                
-                       g_free (server_account_name);
+                       if (server_account_name)
+                               g_free (server_account_name);
                }
                
                iter = g_slist_next (iter);     
index b734983..f1dbb95 100644 (file)
@@ -208,8 +208,9 @@ modest_connection_specific_smtp_window_fill_with_connections (ModestConnectionSp
                                MODEL_COL_NAME, connection_name,
                                MODEL_COL_SERVER_ACCOUNT_NAME, server_account_name,
                                -1);
-                               
-                       g_free (server_account_name);
+
+                       if (server_account_name)                                
+                               g_free (server_account_name);
                }
                
                iter = g_slist_next (iter);