From: <kr_...@us...> - 2004-05-25 20:41:03
|
Update of /cvsroot/htoolkit/port/src/cbits/GTK In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22085/src/cbits/GTK Modified Files: Action.c Util.c Log Message: Proper destroying of action handles Index: Action.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Action.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Action.c 16 May 2004 07:59:03 -0000 1.2 --- Action.c 25 May 2004 20:40:39 -0000 1.3 *************** *** 119,128 **** }; - void destroy_all_actions() - { - while (first_action) - osDestroyAction(first_action); - } - ActionHandle osCreateAction() { --- 119,122 ---- *************** *** 410,411 **** --- 404,411 ---- free(action); } + + void osDestroyAllActions() + { + while (first_action) + osDestroyAction(first_action); + } Index: Util.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Util.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Util.c 12 May 2004 20:42:34 -0000 1.21 --- Util.c 25 May 2004 20:40:40 -0000 1.22 *************** *** 100,104 **** { gtk_main(); ! destroy_all_actions(); handleProcessDestroy(); free(gAppTitle); gAppTitle = NULL; --- 100,104 ---- { gtk_main(); ! osDestroyAllActions(); handleProcessDestroy(); free(gAppTitle); gAppTitle = NULL; |