Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_scrollbar.c 


Log Message:
Protect against a very obscure case that could cause a segv if a mouse
up event had not yet occurred while scrolling and the scrollbar was destroyed.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_scrollbar.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_scrollbar.c     29 Oct 2005 01:49:16 -0000      1.9
+++ ewl_scrollbar.c     2 Dec 2005 20:56:20 -0000       1.10
@@ -141,6 +141,8 @@
                            ewl_scrollbar_scroll_start_cb, s);
        ewl_callback_append(s->decrement, EWL_CALLBACK_MOUSE_UP,
                            ewl_scrollbar_scroll_stop_cb, s);
+       ewl_callback_append(s->decrement, EWL_CALLBACK_DESTROY,
+                           ewl_scrollbar_scroll_stop_cb, s);
 
        /*
         * Set the default alignment for the buttons.
@@ -509,7 +511,8 @@
 
        s = EWL_SCROLLBAR(user_data);
 
-       ecore_timer_del(s->timer);
+       if (s->timer)
+               ecore_timer_del(s->timer);
 
        s->timer = NULL;
        s->direction = 0;
@@ -555,4 +558,3 @@
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }
-




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to