okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=76cfa1d52cac00328ce27bdbfa40f106c7079023

commit 76cfa1d52cac00328ce27bdbfa40f106c7079023
Author: Stephen Houston <stephen@localhost.localdomain>
Date:   Mon Aug 17 17:31:39 2015 -0500

    Ephoto: Fix bug with a bad free on entry set.  Deleting the image already 
frees the image data.
---
 src/bin/ephoto_single_browser.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c
index 081eea0..82cecf2 100644
--- a/src/bin/ephoto_single_browser.c
+++ b/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);
 }

-- 


Reply via email to