Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        dialog.c snaps.c 


Log Message:
Fix dialog segv's.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/dialog.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -3 -r1.94 -r1.95
--- dialog.c    12 Jan 2005 23:10:00 -0000      1.94
+++ dialog.c    13 Jan 2005 20:12:22 -0000      1.95
@@ -266,6 +266,8 @@
 {
    int                 i;
 
+   RemoveItem(NULL, d->win, LIST_FINDBY_ID, LIST_TYPE_DIALOG);
+
    if (d->name)
       Efree(d->name);
    if (d->title)
@@ -596,8 +598,6 @@
 
    if (d->exit_func)
       d->exit_func(d, d->exit_val, NULL);
-
-   RemoveItem(NULL, d->win, LIST_FINDBY_ID, LIST_TYPE_DIALOG);
 }
 
 DItem              *
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/snaps.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -3 -r1.76 -r1.77
--- snaps.c     12 Jan 2005 23:10:24 -0000      1.76
+++ snaps.c     13 Jan 2005 20:12:23 -0000      1.77
@@ -623,9 +623,11 @@
 #endif
 
  done:
-   if (sd)
-      Efree(sd);
-   DialogSetData(d, NULL);
+   if (sd && val == 2)
+     {
+       Efree(sd);
+       DialogSetData(d, NULL);
+     }
 
    SaveSnapInfo();
 }




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to