projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On disposing folder view, remove all accounts from store.
[modest]
/
src
/
modest-server-account-settings.c
diff --git
a/src/modest-server-account-settings.c
b/src/modest-server-account-settings.c
index
d786763
..
40c6ce1
100644
(file)
--- a/
src/modest-server-account-settings.c
+++ b/
src/modest-server-account-settings.c
@@
-29,6
+29,8
@@
#include <modest-protocol-registry.h>
#include <modest-server-account-settings.h>
#include <modest-protocol-registry.h>
#include <modest-server-account-settings.h>
+#include <strings.h>
+#include <string.h>
/* 'private'/'protected' functions */
static void modest_server_account_settings_class_init (ModestServerAccountSettingsClass *klass);
/* 'private'/'protected' functions */
static void modest_server_account_settings_class_init (ModestServerAccountSettingsClass *klass);
@@
-121,8
+123,13
@@
modest_server_account_settings_finalize (GObject *obj)
priv->hostname = NULL;
g_free (priv->username);
priv->username = NULL;
priv->hostname = NULL;
g_free (priv->username);
priv->username = NULL;
- g_free (priv->password);
+
+ if (priv->password) {
+ bzero (priv->password, strlen (priv->password));
+ g_free (priv->password);
+ }
priv->password = NULL;
priv->password = NULL;
+
priv->protocol = MODEST_PROTOCOL_REGISTRY_TYPE_INVALID;
priv->port = 0;
priv->security_protocol = MODEST_PROTOCOL_REGISTRY_TYPE_INVALID;
priv->protocol = MODEST_PROTOCOL_REGISTRY_TYPE_INVALID;
priv->port = 0;
priv->security_protocol = MODEST_PROTOCOL_REGISTRY_TYPE_INVALID;
@@
-234,7
+241,10
@@
modest_server_account_settings_set_password (ModestServerAccountSettings *settin
g_return_if_fail (MODEST_IS_SERVER_ACCOUNT_SETTINGS (settings));
priv = MODEST_SERVER_ACCOUNT_SETTINGS_GET_PRIVATE (settings);
g_return_if_fail (MODEST_IS_SERVER_ACCOUNT_SETTINGS (settings));
priv = MODEST_SERVER_ACCOUNT_SETTINGS_GET_PRIVATE (settings);
- g_free (priv->password);
+ if (priv->password) {
+ bzero (priv->password, strlen (priv->password));
+ g_free (priv->password);
+ }
priv->password = g_strdup (password);
}
priv->password = g_strdup (password);
}