Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/esmart

Dir     : e17/libs/esmart/src/lib/esmart_text_entry


Modified Files:
        esmart_text_entry.c 


Log Message:
memleak fixed
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_text_entry/esmart_text_entry.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- esmart_text_entry.c 5 May 2004 05:57:01 -0000       1.1.1.1
+++ esmart_text_entry.c 6 May 2004 14:49:12 -0000       1.2
@@ -430,10 +430,10 @@
 static Evas_Smart *
 esmart_text_entry_smart_get (void)
 {
-  Evas_Smart *s = NULL;
+  static Evas_Smart *s = NULL;
 
-  s =
-    evas_smart_new ("Text Entry", esmart_text_entry_add,
+  if (!s)
+    s = evas_smart_new ("Text Entry", esmart_text_entry_add,
                    esmart_text_entry_del, esmart_text_entry_layer_set,
                    esmart_text_entry_raise, esmart_text_entry_lower,
                    esmart_text_entry_stack_above,




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to