diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-09-03 23:13:48 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-09-03 23:13:48 +0800 |
commit | 5e2c2e595ea43689b22a0c93e978c3a8afa60e06 (patch) | |
tree | 36598522bdb51e907205e0947c99329b514a0008 /mail/mail-config.c | |
parent | e6220851e3ae208ad833c4fcce282b1b2a730e86 (diff) | |
download | gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar.gz gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar.bz2 gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar.lz gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar.xz gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.tar.zst gsoc2013-evolution-5e2c2e595ea43689b22a0c93e978c3a8afa60e06.zip |
Copy the passed in item before adding (mail_config_add_source): ditto
2000-09-03 JP Rosevear <jpr@helixcode.com>
* mail-config.c (mail_config_add_news): Copy the passed in item
before adding
(mail_config_add_source): ditto
(mail_config_add_identity): ditto
* mail-config-gui.c (mail_config): We don't actually need a
notebook
pointer.
(identities_edit_clicked): Don't explicitly destroy, we are using
gtk_clist_set_data_full now
(sources_edit_clicked): ditto
(news_edit_clicked): ditto
(mail_config): Use gtk_clist_set_row_data_full to kill leaks
svn path=/trunk/; revision=5185
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index da9629488e..fc8fa7203e 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -484,7 +484,9 @@ mail_config_get_identities (void) void mail_config_add_identity (MailConfigIdentity *id) { - config->ids = g_slist_append (config->ids, id); + MailConfigIdentity *new_id = identity_copy (id); + + config->ids = g_slist_append (config->ids, new_id); } MailConfigService * @@ -505,7 +507,9 @@ mail_config_get_sources (void) void mail_config_add_source (MailConfigService *source) { - config->sources = g_slist_append (config->sources, source); + MailConfigService *new_source = service_copy (source); + + config->sources = g_slist_append (config->sources, new_source); } MailConfigService * @@ -541,7 +545,9 @@ mail_config_get_news (void) void mail_config_add_news (MailConfigService *news) { - config->news = g_slist_append (config->news, news); + MailConfigService *new_news = service_copy (news); + + config->news = g_slist_append (config->news, new_news); } |