backport import dialog leak fix

SVN revision: 83140
This commit is contained in:
Mike Blumenkrantz 2013-01-23 10:01:42 +00:00
parent b7d8881e1e
commit 058c768cbb
3 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@
* 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
2013-01-22 Massimo Maiurana

1
NEWS
View File

@ -40,3 +40,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

View File

@ -146,7 +146,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;