Use E_FREE to free the dialog data structures as they were created using

E_NEW and E_FREE sets the pointer to NULL already.



SVN revision: 37538
master
Christopher Michael 14 years ago
parent b6dd79fa26
commit 4b31372987
  1. 8
      e_mod_config.c
  2. 19
      e_mod_config_box.c

@ -79,11 +79,9 @@ _create_data (E_Config_Dialog * cfd)
static void
_free_data (E_Config_Dialog * cfd, E_Config_Dialog_Data * cfdata)
{
if (!mail_config)
return;
mail_config->config_dialog = NULL;
free (cfdata);
cfdata = NULL;
if (!mail_config) return;
mail_config->config_dialog = NULL;
E_FREE(cfdata);
}
static Evas_Object *

@ -141,16 +141,15 @@ _create_data (E_Config_Dialog * cfd)
static void
_free_data (E_Config_Dialog * cfd, E_Config_Dialog_Data * cfdata)
{
E_FREE (cfdata->name);
E_FREE (cfdata->port);
E_FREE (cfdata->host);
E_FREE (cfdata->user);
E_FREE (cfdata->pass);
E_FREE (cfdata->new_path);
E_FREE (cfdata->cur_path);
E_FREE (cfdata->exec);
free (cfdata);
E_FREE(cfdata->name);
E_FREE(cfdata->port);
E_FREE(cfdata->host);
E_FREE(cfdata->user);
E_FREE(cfdata->pass);
E_FREE(cfdata->new_path);
E_FREE(cfdata->cur_path);
E_FREE(cfdata->exec);
E_FREE(cfdata);
}
static Evas_Object *

Loading…
Cancel
Save