Changeset 985 for trunk/dll/tools.c
- Timestamp:
- Mar 1, 2008, 2:37:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/tools.c
r907 r985 17 17 05 Sep 06 SHL Sync with standard source formatting 18 18 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 19 29 Feb 08 GKY Use xfree where appropriate 19 20 20 21 ***********************************************************************/ … … 51 52 qtloaded = TRUE; 52 53 for (x = 0; x < 50 && quicktool[x]; x++) { 53 free(quicktool[x]);54 xfree(quicktool[x]); 54 55 quicktool[x] = NULL; 55 56 } … … 265 266 if (prev) 266 267 prev->next = info->next; 267 if (info->help) 268 free(info->help); 269 if (info->text) 270 free(info->text); 271 free(info); 268 xfree(info->help); 269 xfree(info->text); 270 xfree(info); 272 271 fToolsChanged = TRUE; 273 272 break; … … 365 364 while (tool) { 366 365 next = tool->next; 367 if (tool->help) 368 free(tool->help); 369 if (tool->text) 370 free(tool->text); 371 free(tool); 366 xfree(tool->help); 367 xfree(tool->text); 368 xfree(tool); 372 369 tool = next; 373 370 } … … 716 713 if (tool) { /* just editing strings... */ 717 714 istext = ((tool->flags & T_TEXT) != 0); 718 if (tool->help) 719 free(tool->help); 715 xfree(tool->help); 720 716 tool->help = NULL; 721 if (tool->text) 722 free(tool->text); 717 xfree(tool->text); 723 718 tool->text = NULL; 724 719 if (*help)
Note:
See TracChangeset
for help on using the changeset viewer.