diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/em-folder-view.c | 1 | ||||
-rw-r--r-- | mail/mail-component.c | 1 | ||||
-rw-r--r-- | mail/message-list.c | 7 |
4 files changed, 16 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 3411d8356b..ed1bf8f535 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +2008-02-18 Milan Crha <mcrha@redhat.com> + + ** Part of fix for bug #515744 + + * em-folder-view.c: (emfv_setup_view_instance): + * mail-component.c: (impl_finalize): + * message-list.c: (ml_tree_value_at): + Memory leak fix. + 2008-02-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #167638 diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index cd31926862..53ec53d526 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -664,6 +664,7 @@ emfv_setup_view_instance(EMFolderView *emfv) g_free (filename); filename = g_strdup_printf ("current_wide_view-%s.xml", safe_id); p->view_instance->current_view_filename = g_build_filename (collection->local_dir, filename, NULL); + g_free (filename); g_free (safe_id); } g_free (id); diff --git a/mail/mail-component.c b/mail/mail-component.c index eb9f9c8b59..879c346494 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -489,6 +489,7 @@ impl_finalize (GObject *object) g_free (priv->context_path); g_mutex_free(priv->lock); + g_object_unref (priv->model); g_object_unref (priv->logger); g_free (priv); diff --git a/mail/message-list.c b/mail/message-list.c index 68b59449fa..3f9a3644ae 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1493,8 +1493,11 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data) char **sender_name = NULL; str = camel_message_info_from (msg_info); if(str && str[0] != '\0'){ - sender_name=g_strsplit(str,"<",2); - return (void *)(*sender_name); + char *res; + sender_name = g_strsplit (str,"<",2); + res = g_strdup (*sender_name); + g_strfreev (sender_name); + return (void *)(res); } else return (void *)(""); |