Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: Set the initial refcount to 1 to avoid leaking contexts when decrementing the unsigned int and wrapping around from 0 to a positive number and failing the > 0 test. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -3 -r1.37 -r1.38 --- ewl_text.c 28 Oct 2005 03:57:44 -0000 1.37 +++ ewl_text.c 31 Oct 2005 15:24:10 -0000 1.38 @@ -3331,6 +3331,7 @@ DENTER_FUNCTION(DLEVEL_STABLE); tx = NEW(Ewl_Text_Context, 1); + tx->ref_count = 1; DRETURN_PTR(tx, DLEVEL_STABLE);; } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs