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

v-1.6.0
Stephen Houston 7 years ago
parent 835f623d63
commit 76cfa1d52c
  1. 10
      src/bin/ephoto_single_browser.c

@ -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;
}
sb->edited_image_data = NULL;
sb->ew = 0;
sb->eh = 0;
if (sb->viewer)
_zoom_fit(sb);
}

Loading…
Cancel
Save