[evolution] Fix few memory leaks around composer and e-widget-undo.c



commit e39c1ba98bbf63dfdc8233efc237e352c6d02957
Author: Milan Crha <mcrha redhat com>
Date:   Thu Mar 26 10:38:44 2015 +0100

    Fix few memory leaks around composer and e-widget-undo.c

 composer/e-msg-composer.c                    |    2 ++
 e-util/e-widget-undo.c                       |    1 +
 modules/composer-autosave/e-autosave-utils.c |    2 ++
 3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 29c2474..e7acb0d 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4214,6 +4214,8 @@ add_recipients (GList *list,
                }
        }
 
+       g_object_unref (cia);
+
        return list;
 }
 
diff --git a/e-util/e-widget-undo.c b/e-util/e-widget-undo.c
index f2a3ec7..a7e6f8c 100644
--- a/e-util/e-widget-undo.c
+++ b/e-util/e-widget-undo.c
@@ -90,6 +90,7 @@ free_undo_data (gpointer ptr)
                for (ii = 0; ii < data->undo_len; ii++) {
                        free_undo_info (data->undo_stack[ii]);
                }
+               g_free (data->undo_stack);
                g_free (data);
        }
 }
diff --git a/modules/composer-autosave/e-autosave-utils.c b/modules/composer-autosave/e-autosave-utils.c
index c96481f..ce74d49 100644
--- a/modules/composer-autosave/e-autosave-utils.c
+++ b/modules/composer-autosave/e-autosave-utils.c
@@ -111,6 +111,8 @@ create_snapshot_file (EMsgComposer *composer,
                SNAPSHOT_FILE_KEY, snapshot_file,
                (GDestroyNotify) delete_snapshot_file);
 
+       g_free (path);
+
        return snapshot_file;
 }
 


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