Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : proto

Dir     : e17/proto/esmart/src/trans


Modified Files:
        esmart_trans.c 


Log Message:
fixed another leak
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/trans/esmart_trans.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- esmart_trans.c      22 Apr 2004 15:06:17 -0000      1.14
+++ esmart_trans.c      22 Apr 2004 15:23:58 -0000      1.15
@@ -250,8 +250,11 @@
 static Evas_Smart *
 _esmart_trans_x11_smart_get(void)
 {
-  Evas_Smart *smart = NULL;
+  static Evas_Smart *smart = NULL;
 
+  if (smart)
+     return smart;
+  
   smart = evas_smart_new ("x11_trans_object",
                           _esmart_trans_x11_add,
                           _esmart_trans_x11_del,




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to