raster pushed a commit to branch master.

commit dee5e1d85f6138081e29f35ba136b3d4a398f00c
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Mar 11 15:53:28 2013 +0900

    emotion "fix" - not actually a bug i hit, but a potential one where
    xattr change jobs are not deleted on sd free.
---
 src/lib/emotion/emotion_smart.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 7f1a88e..47abfb2 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -198,6 +198,14 @@ _emotion_image_data_zero(Evas_Object *img)
 static void
 _smart_data_free(Smart_Data *sd)
 {
+#ifdef HAVE_EIO
+   /* Only cancel the load_xattr or we will loose ref to time_seek stringshare 
*/
+   if (sd->load_xattr) eio_file_cancel(sd->load_xattr);
+   sd->load_xattr = NULL;
+   if (sd->save_xattr) eio_file_cancel(sd->save_xattr);
+   sd->save_xattr = NULL;
+#endif
+
    if (sd->engine_instance)
      {
         emotion_engine_instance_file_close(sd->engine_instance);

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to