Enlightenment CVS committal Author : doursse Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_16_wince Modified Files: evas_wince_gapi_buffer.c Log Message: remove a possible seg fault when DestroyWindow() is called =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_16_wince/evas_wince_gapi_buffer.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_wince_gapi_buffer.c 26 Apr 2008 12:32:29 -0000 1.2 +++ evas_wince_gapi_buffer.c 8 May 2008 06:46:26 -0000 1.3 @@ -66,13 +66,19 @@ int evas_software_wince_gapi_suspend(void) { - return suspend(); + if (suspend) + return suspend(); + else + return 0; } int evas_software_wince_gapi_resume(void) { - return resume(); + if (resume) + return resume(); + else + return 0; } void * @@ -215,6 +221,8 @@ p = (Evas_Engine_WinCE_GAPI_Priv *)priv; p->close_input(); p->close_display(); + suspend = NULL; + resume = NULL; FreeLibrary(p->lib); free(p); } ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs