Changeset 1009 for trunk/dll/assoc.c
- Timestamp:
- May 10, 2008, 9:51:58 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/dll/assoc.c (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r989 r1009 119 119 while (info) { 120 120 next = info->next; 121 xfree(info->mask );122 xfree(info->pszCmdLine );123 xfree(info->sig );124 xfree(info );121 xfree(info->mask, pszSrcFile, __LINE__); 122 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 123 xfree(info->sig, pszSrcFile, __LINE__); 124 xfree(info, pszSrcFile, __LINE__); 125 125 info = next; 126 126 } … … 183 183 info->flags = atol(flags); 184 184 if (!info->pszCmdLine || !info->mask) { 185 xfree(info->pszCmdLine );186 xfree(info->mask );187 xfree(info );185 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 186 xfree(info->mask, pszSrcFile, __LINE__); 187 xfree(info, pszSrcFile, __LINE__); 188 188 break; 189 189 } … … 233 233 MPFROMSHORT(x), MPFROMSHORT(TRUE)); 234 234 } 235 xfree(pszDisplayStr );235 xfree(pszDisplayStr, pszSrcFile, __LINE__); 236 236 } 237 237 } … … 313 313 info->flags = addme->flags; 314 314 if (!info->pszCmdLine || !info->mask) { 315 xfree(info->pszCmdLine );316 xfree(info->mask );317 xfree(info );315 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 316 xfree(info->mask, pszSrcFile, __LINE__); 317 xfree(info, pszSrcFile, __LINE__); 318 318 } 319 319 else { … … 359 359 asstail = info->prev; 360 360 } 361 xfree(info->pszCmdLine );362 xfree(info->mask );363 xfree(info->sig );364 xfree(info );361 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 362 xfree(info->mask, pszSrcFile, __LINE__); 363 xfree(info->sig, pszSrcFile, __LINE__); 364 xfree(info, pszSrcFile, __LINE__); 365 365 return TRUE; 366 366 } … … 540 540 ASS_LISTBOX, 541 541 LM_SELECTITEM, MPFROMSHORT(0), MPFROMSHORT(TRUE)); 542 xfree(pszDisplayStr );542 xfree(pszDisplayStr, pszSrcFile, __LINE__); 543 543 } 544 544 } … … 695 695 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 696 696 if (!pszWorkBuf) { 697 xfree(temp.pszCmdLine );697 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 698 698 break; //already complained 699 699 } … … 704 704 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 705 705 } 706 xfree(pszWorkBuf );706 xfree(pszWorkBuf, pszSrcFile, __LINE__); 707 707 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 708 708 rstrip(temp.sig); … … 731 731 if (fCancelAction){ 732 732 fCancelAction = FALSE; 733 xfree(temp.pszCmdLine );733 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 734 734 break; 735 735 } … … 742 742 save_associations(); 743 743 } 744 xfree(temp.pszCmdLine );744 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 745 745 } 746 746 WinDismissDlg(hwnd, 1); … … 770 770 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 771 771 if (!pszWorkBuf) { 772 xfree(temp.pszCmdLine );772 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 773 773 break; //already complained 774 774 } … … 779 779 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 780 780 } 781 xfree(pszWorkBuf );781 xfree(pszWorkBuf, pszSrcFile, __LINE__); 782 782 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 783 783 rstrip(temp.sig); … … 806 806 if (fCancelAction){ 807 807 fCancelAction = FALSE; 808 xfree(temp.pszCmdLine );808 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 809 809 break; 810 810 } … … 816 816 save_associations(); 817 817 } 818 xfree(temp.pszCmdLine );818 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 819 819 } 820 820 break; … … 852 852 save_associations(); 853 853 } 854 xfree(temp.pszCmdLine );854 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 855 855 } 856 856 … … 874 874 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 875 875 if (!pszWorkBuf) { 876 xfree(temp.pszCmdLine );876 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 877 877 break; //already complained 878 878 } … … 883 883 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 884 884 } 885 xfree(pszWorkBuf );885 xfree(pszWorkBuf, pszSrcFile, __LINE__); 886 886 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 887 887 rstrip(temp.sig); … … 910 910 if (fCancelAction){ 911 911 fCancelAction = FALSE; 912 xfree(temp.pszCmdLine );912 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 913 913 break; 914 914 } … … 919 919 save_associations(); 920 920 } 921 xfree(temp.pszCmdLine );921 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 922 922 } 923 923 { … … 956 956 save_associations(); 957 957 } 958 xfree(temp.pszCmdLine );958 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 959 959 } 960 960 break;
Note:
See TracChangeset
for help on using the changeset viewer.
