From: Sergio Villar Senin Date: Mon, 27 Oct 2008 18:33:19 +0000 (+0000) Subject: * Fixes NB#90487, added a NULL check X-Git-Tag: git_migration_finished~1095 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c5d86c58438fc0a294a16d3aa4101cf4964b7d82 * Fixes NB#90487, added a NULL check pmo-trunk-r6168 --- diff --git a/src/hildon2/modest-connection-specific-smtp-window.c b/src/hildon2/modest-connection-specific-smtp-window.c index 4b95597..dc54c90 100644 --- a/src/hildon2/modest-connection-specific-smtp-window.c +++ b/src/hildon2/modest-connection-specific-smtp-window.c @@ -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); diff --git a/src/maemo/modest-connection-specific-smtp-window.c b/src/maemo/modest-connection-specific-smtp-window.c index b734983..f1dbb95 100644 --- a/src/maemo/modest-connection-specific-smtp-window.c +++ b/src/maemo/modest-connection-specific-smtp-window.c @@ -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);