same leak as previous in import dialog
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Jan 2013 10:01:26 +0000 (10:01 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Jan 2013 10:01:26 +0000 (10:01 +0000)
SVN revision: 83139

ChangeLog
NEWS
src/bin/e_import_dialog.c

index 6210aa4..492c2da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
         * module error dialog is no longer remembered across restarts
         * fixed small leak in efm when performing dnd onto mounted drive icon
         * fixed small leak in e_import_config_dialog_show during failure case
+        * fixed small leak in e_import_dialog_show during failure case
 
 2013-01-22 Mike Blumenkrantz
 
diff --git a/NEWS b/NEWS
index 76c6f77..a60a57b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -114,3 +114,4 @@ Fixes:
     * module error dialog is no longer remembered across restarts
     * fix small leak in efm when performing dnd onto mounted drive icon
     * fixed small leak in e_import_config_dialog_show during failure case
+    * fixed small leak in e_import_dialog_show during failure case
index 2c109a3..ac22551 100644 (file)
@@ -145,7 +145,11 @@ e_import_dialog_show(E_Container *con, const char *dev, const char *path, Ecore_
    if (!id) return NULL;
 
    dia = e_dialog_new(con, "E", "_import_fsel_dialog");
-   if (!dia) return NULL;
+   if (!dia)
+     {
+        e_object_del(E_OBJECT(id));
+        return NULL;
+     }
    e_dialog_resizable_set(dia, 1);
 
    dia->data = id;