Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore Modified Files: ecore_exe.c ecore_private.h Log Message: leak-- ecore_exe leaked doosmdat clock dead data. ecore_evas loaked netwm state data =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -3 -r1.64 -r1.65 --- ecore_exe.c 22 Jun 2006 19:49:00 -0000 1.64 +++ ecore_exe.c 29 Jul 2006 10:05:13 -0000 1.65 @@ -839,7 +839,17 @@ data = exe->data; - IF_FN_DEL(ecore_timer_del, exe->doomsday_clock); + if (exe->doomsday_clock) + { + struct _ecore_exe_dead_exe *dead; + + ecore_timer_del(exe->doomsday_clock); + exe->doomsday_clock = NULL; + dead = exe->doomsday_clock_dead; + IF_FREE(dead->cmd); + free(dead); + exe->doomsday_clock_dead = NULL; + } IF_FN_DEL(ecore_main_fd_handler_del, exe->write_fd_handler); IF_FN_DEL(ecore_main_fd_handler_del, exe->read_fd_handler); IF_FN_DEL(ecore_main_fd_handler_del, exe->error_fd_handler); @@ -994,6 +1004,7 @@ IF_FN_DEL(ecore_timer_del, exe->doomsday_clock); exe->doomsday_clock = ecore_timer_add(10.0, _ecore_exe_make_sure_its_dead, dead); + exe->doomsday_clock_dead = dead; } printf("Sending TERM signal to %s (%d).\n", exe->cmd, exe->pid); =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_private.h,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- ecore_private.h 5 Apr 2006 18:05:16 -0000 1.41 +++ ecore_private.h 29 Jul 2006 10:05:13 -0000 1.42 @@ -268,6 +268,7 @@ int start_bytes, end_bytes, start_lines, end_lines; /* Number of bytes/lines to auto pipe at start/end of stdout/stderr. */ Ecore_Timer *doomsday_clock; /* The Timer of Death. Muahahahaha. */ + void *doomsday_clock_dead; /* data for the doomsday clock */ }; #endif ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs