[evolution-groupwise] Bug 656618 - Invalid reads while editing an account setting



commit e5ebf435cecb9ee979b346fed1ea966fe784e99d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Aug 17 18:28:11 2011 -0400

    Bug 656618 - Invalid reads while editing an account setting

 src/plugins/camel-gw-listener.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/camel-gw-listener.c b/src/plugins/camel-gw-listener.c
index 2021efd..d081180 100644
--- a/src/plugins/camel-gw-listener.c
+++ b/src/plugins/camel-gw-listener.c
@@ -1070,6 +1070,10 @@ account_changed (EAccountList *account_listener, EAccount *account)
 
 			account_removed (account_listener, account);
 			account_added (account_listener, account);
+
+			/* We freed the old account info structure and
+			 * created a new one, so fetch the new one. */
+			existing_account_info = lookup_account_info (account->uid);
 		} else if (strcmp (existing_account_info->name, account->name)) {
 
 			modify_esource ("/apps/evolution/calendar/sources", existing_account_info, account, new_url);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]