fix some segv's and valgrind errors.

SVN revision: 25403
This commit is contained in:
Carsten Haitzler 2006-09-03 11:55:16 +00:00
parent 5a1799c941
commit 953d902a18
3 changed files with 17 additions and 5 deletions

12
TODO
View File

@ -8,6 +8,18 @@ Some of the things (in very short form) that need to be done to E17...
BUGS / FIXES
-------------------------------------------------------------------------------
* BUG: eap editor - creates eap files not .desktop files
* BUG: add application to ibar via ibar's right click menu is broken - it
doesnt resize ibar on add. and on a restart of e the icon is gone.
* BUG: right click remove icon from ibar deletes the original file - not the
ibar link to it in .order
* BUG: add app to ibar via ibar right menu and restart - app is gone. (dnd
for add/remove still works though)
* BUG: "add aplication" in applicatiosn dialog shoudl be disabled if no
app is selected in the fm view above it
* BUG: "create new application" from "applications main config dialog when
done (ok) does not refresh the available applications view automatically.
* BUG: all applications eap edit - same as ibar - new applications are .eap
* BUG: e17 screen res diaolg doesnt work under xephyr - why?
* BUG: the ibar specific menu only shows when you right click on icons (and not
on the bar itself). so, if there are no icons you can't get to the config.

View File

@ -170,15 +170,15 @@ _e_eap_edit_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *data)
if (data->editor->eap->image) evas_stringshare_del(data->editor->eap->image);
data->editor->eap->width = 0;
data->editor->eap->height = 0;
e_object_unref(E_OBJECT(data->editor->eap));
if (data->editor)
{
if (data->editor->img) evas_object_del(data->editor->img);
if (data->editor->img_widget) evas_object_del(data->editor->img_widget);
if (data->editor->fsel) evas_object_del(data->editor->fsel);
// if (data->editor->img) evas_object_del(data->editor->img);
// if (data->editor->img_widget) evas_object_del(data->editor->img_widget);
// if (data->editor->fsel) evas_object_del(data->editor->fsel);
// if (data->editor->fsel_dia) e_object_del(E_OBJECT(data->editor->fsel_dia));
free(data->editor);
}
e_object_unref(E_OBJECT(data->editor->eap));
free(data);
}

View File

@ -178,7 +178,7 @@ _e_wid_fsel_files_changed(void *data, Evas_Object *obj, void *event_info)
}
if (wd->o_files_frame)
e_widget_scrollframe_child_pos_set(wd->o_files_frame, 0, 0);
if (stat(wd->path, &st) == 0)
if ((wd->path) && (stat(wd->path, &st) == 0))
e_widget_entry_text_set(wd->o_entry, wd->path);
E_FREE(wd->path);
if (wd->chg_func) wd->chg_func(wd->chg_data, wd->obj);