aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-10-16 22:45:04 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-10-16 22:45:04 +0800
commitbb64d5dd741646b4e19c488c437b77297798237d (patch)
treecd87f6c751c369cefeb3977723f9cbaeb210f602
parent85de4c714e534cb6f7d497fe07b762fdde98468a (diff)
downloadgsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar.gz
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar.bz2
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar.lz
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar.xz
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.tar.zst
gsoc2013-evolution-bb64d5dd741646b4e19c488c437b77297798237d.zip
Fixes #360815
svn path=/trunk/; revision=32897
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-component.c4
-rw-r--r--plugins/groupwise-features/ChangeLog5
-rw-r--r--plugins/groupwise-features/mail-send-options.c5
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-window.c1
6 files changed, 20 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a9679f6c0b..9512726bbb 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-16 Chris Heath <chris@heathens.co.nz>
+
+ * mail-component.c (create_local_item_cb): Fix memory leak.
+ Fixes bug #360815.
+
2005-10-16 Sankar P <psankar@novell.com>
* mail-ops.c: (em_filter_folder_element_describe)
diff --git a/mail/mail-component.c b/mail/mail-component.c
index c9093b61fe..73272798c2 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -876,8 +876,10 @@ static void
create_local_item_cb(EUserCreatableItemsHandler *handler, const char *item_type_name, void *data)
{
EMFolderTree *tree = data;
+ char *uri = em_folder_tree_get_selected_uri(tree);
- create_item(item_type_name, em_folder_tree_get_model(tree), em_folder_tree_get_selected_uri(tree));
+ create_item(item_type_name, em_folder_tree_get_model(tree), uri);
+ g_free(uri);
}
static void
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index af8f6ab5bc..cd3d66d6b3 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-16 Chris Heath <chris@heathens.co.nz>
+
+ * mail-send-options.c (org_gnome_compose_send_options):
+ Fix memory leak. Fixes bug #360815.
+
2006-07-18 Andre Klapper <a9016009@gmx.de>
* properties.glade: remove "*" from translation. Fixes bug #331147.
diff --git a/plugins/groupwise-features/mail-send-options.c b/plugins/groupwise-features/mail-send-options.c
index 0bd494bcd9..d098f9db76 100644
--- a/plugins/groupwise-features/mail-send-options.c
+++ b/plugins/groupwise-features/mail-send-options.c
@@ -144,16 +144,13 @@ org_gnome_compose_send_options (EPlugin *ep, EMMenuTargetWidget *t)
EMsgComposer *comp = (struct _EMsgComposer *)menu.widget ;
EAccount *account = NULL;
char *temp = NULL;
- char *url;
account = e_msg_composer_get_preferred_account (comp) ;
- url = g_strdup (account->transport->url) ;
- temp = strstr (url, "groupwise") ;
+ temp = strstr (account->transport->url, "groupwise") ;
if (!temp) {
g_print ("Sorry send options only available for a groupwise account\n") ;
return;
}
- g_free (temp) ;
/*disply the send options dialog*/
if (!dialog) {
g_print ("New dialog\n\n") ;
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 24f493b1bc..cfffa2b615 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-16 Chris Heath <chris@heathens.co.nz>
+
+ * e-shell-window.c (component_view_free): Fix memory leak.
+ Fixes bug #360815.
+
2006-10-13 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #334966
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 4e2d73f81b..f8ecc993e9 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -176,6 +176,7 @@ component_view_free (ComponentView *view)
g_free (view->component_id);
g_free (view->component_alias);
+ g_free (view->title);
g_free (view);
}