Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_image_main.c 


Log Message:


i spyed me a bug that captin'! aye! comments in the code about it - hack
around it for now.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_image_main.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- evas_image_main.c   18 Jul 2007 04:42:23 -0000      1.53
+++ evas_image_main.c   22 Jul 2007 16:25:24 -0000      1.54
@@ -52,6 +52,7 @@
    if (!eci)
      eci = evas_cache_image_init(&_evas_common_image_func);
    reference++;
+////   printf("REF++=%i\n", reference);
 
 #ifdef BUILD_LOADER_EET
    eet_init();
@@ -63,8 +64,22 @@
 {
    if (--reference == 0)
      {
-        evas_cache_image_shutdown(eci);
-        eci = NULL;
+////   printf("REF--=%i\n", reference);
+// DISABLE for now - something wrong with cache shutdown freeing things
+// still in use - rage_thumb segv's now.
+// 
+// actually - i think i see it. cache ref goes to 0 (and thus gets freed)
+// because in eng_setup() when a buffer changes size it is FIRST freed
+// THEN allocated again - thus brignhjing ref to 0 then back to 1 immediately
+// where it should stay at 1. - see evas_engine.c in the buffer enigne for
+// example. eng_output_free() is called BEFORE _output_setup(). although this
+// is only a SIGNE of the problem. we can patch this up with either freeing
+// after the setup (so we just pt a ref of 2 then back to 1), or just 
+// evas_common_image_init() at the start and evas_common_image_shutdown()
+// after it all. really ref 0 should only be reached when no more canvases
+// with no more objects exist anywhere.
+//        evas_cache_image_shutdown(eci);
+//        eci = NULL;
      }
 
 #ifdef BUILD_LOADER_EET



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to