Ephoto: Fix bug with a bad free on entry set. Deleting the image already frees the image data.

This commit is contained in:
Stephen Houston 2015-08-17 17:31:39 -05:00
parent 835f623d63
commit 76cfa1d52c
1 changed files with 3 additions and 7 deletions

View File

@ -1536,13 +1536,9 @@ ephoto_single_browser_entry_set(Evas_Object *obj, Ephoto_Entry *entry)
ephoto_entry_free_listener_add(entry, _entry_free, sb);
_ephoto_single_browser_recalc(sb);
if (sb->edited_image_data)
{
free(sb->edited_image_data);
sb->edited_image_data = NULL;
sb->ew = 0;
sb->eh = 0;
}
if (sb->viewer)
_zoom_fit(sb);
}