Changeset 959 for trunk/dll/command.c
- Timestamp:
- Feb 18, 2008, 1:47:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r927 r959 305 305 while (info) { 306 306 next = info->next; 307 free(info->title);308 free(info->cl);307 xfree(info->title); 308 xfree(info->cl); 309 309 free(info); 310 310 info = next; … … 353 353 info->flags = atol(flags); 354 354 if (!info->cl || !info->title) { 355 if (info->cl) 356 free(info->cl); 357 if (info->title) 358 free(info->title); 355 xfree(info->cl); 356 xfree(info->title); 359 357 free(info); 360 358 break; … … 459 457 cmdtail = info->prev; 460 458 } 461 free(info->cl);462 free(info->title);459 xfree(info->cl); 460 xfree(info->title); 463 461 free(info); 464 462 return TRUE; … … 625 623 626 624 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 625 if (!pszWorkBuf) 626 break; //already complained 627 627 memset(&temp, 0, sizeof(COMMAND)); 628 628 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); … … 721 721 722 722 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 723 if (!pszWorkBuf) 724 break; //already complained 723 725 memset(&temp, 0, sizeof(COMMAND)); 724 726 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); … … 823 825 824 826 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 827 if (!pszWorkBuf) 828 break; //already complained 825 829 memset(&temp, 0, sizeof(COMMAND)); 826 830 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl);
Note:
See TracChangeset
for help on using the changeset viewer.