Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_thumb.c 


Log Message:


bad raster! no coockie! fix segv - thanks valgrind

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- e_thumb.c   22 Jul 2006 21:48:24 -0000      1.34
+++ e_thumb.c   23 Jul 2006 14:05:39 -0000      1.35
@@ -121,6 +121,7 @@
    
    eth = evas_object_data_get(obj, "e_thumbdata");
    if (!eth) return;
+   if (eth->queued) return;
    if (eth->busy) return;
    if (!eth->file) return;
    if (!_thumbnailers)
@@ -160,12 +161,18 @@
    
    eth = evas_object_data_get(obj, "e_thumbdata");
    if (!eth) return;
-   if (eth->queued) _thumb_queue = evas_list_remove(_thumb_queue, eth);
-   eth->queued = 0;
-   if (eth->busy) _e_thumb_gen_end(eth->objid);
-   eth->busy = 0;
-   _pending--;
-   if (_pending == 0) _e_thumb_thumbnailers_kill();
+   if (eth->queued)
+     {
+       _thumb_queue = evas_list_remove(_thumb_queue, eth);
+       eth->queued = 0;
+     }
+   if (eth->busy)
+     {
+       _e_thumb_gen_end(eth->objid);
+       eth->busy = 0;
+       _pending--;
+       if (_pending == 0) _e_thumb_thumbnailers_kill();
+     }
 }
 
 EAPI void
@@ -272,6 +279,7 @@
    if (eth->busy)
      {
        _e_thumb_gen_end(eth->objid);
+       eth->busy = 0;
        _pending--;
        if (_pending == 0) _e_thumb_thumbnailers_kill();
      }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to