Changeset 1039 for trunk/dll/assoc.c
- Timestamp:
- Jul 6, 2008, 12:16:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r1029 r1039 37 37 #include "strutil.h" // GetPString 38 38 #include "fm3dll.h" 39 #include "fortify.h" 39 40 40 41 #pragma data_seg(DATA1) … … 122 123 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 123 124 xfree(info->sig, pszSrcFile, __LINE__); 124 xfree(info, pszSrcFile, __LINE__);125 free(info); 125 126 info = next; 126 127 } … … 185 186 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 186 187 xfree(info->mask, pszSrcFile, __LINE__); 187 xfree(info, pszSrcFile, __LINE__);188 free(info); 188 189 break; 189 190 } … … 234 235 MPFROMSHORT(x), MPFROMSHORT(TRUE)); 235 236 } 236 xfree(pszDisplayStr, pszSrcFile, __LINE__);237 free(pszDisplayStr); 237 238 } 238 239 } … … 316 317 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 317 318 xfree(info->mask, pszSrcFile, __LINE__); 318 xfree(info, pszSrcFile, __LINE__);319 free(info); 319 320 } 320 321 else { … … 363 364 xfree(info->mask, pszSrcFile, __LINE__); 364 365 xfree(info->sig, pszSrcFile, __LINE__); 365 xfree(info, pszSrcFile, __LINE__);366 free(info); 366 367 return TRUE; 367 368 } … … 696 697 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 697 698 if (!pszWorkBuf) { 698 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);699 free(temp.pszCmdLine); 699 700 break; //already complained 700 701 } … … 705 706 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 706 707 } 707 xfree(pszWorkBuf, pszSrcFile, __LINE__);708 free(pszWorkBuf); 708 709 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 709 710 rstrip(temp.sig); … … 732 733 if (fCancelAction){ 733 734 fCancelAction = FALSE; 734 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);735 free(temp.pszCmdLine); 735 736 break; 736 737 } … … 743 744 save_associations(); 744 745 } 745 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);746 free(temp.pszCmdLine); 746 747 } 747 748 WinDismissDlg(hwnd, 1); … … 771 772 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 772 773 if (!pszWorkBuf) { 773 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);774 free(temp.pszCmdLine); 774 775 break; //already complained 775 776 } … … 780 781 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 781 782 } 782 xfree(pszWorkBuf, pszSrcFile, __LINE__);783 free(pszWorkBuf); 783 784 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 784 785 rstrip(temp.sig); … … 807 808 if (fCancelAction){ 808 809 fCancelAction = FALSE; 809 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);810 free(temp.pszCmdLine); 810 811 break; 811 812 } … … 817 818 save_associations(); 818 819 } 819 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);820 free(temp.pszCmdLine); 820 821 } 821 822 break; … … 853 854 save_associations(); 854 855 } 855 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);856 free(temp.pszCmdLine); 856 857 } 857 858 … … 875 876 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 876 877 if (!pszWorkBuf) { 877 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);878 free(temp.pszCmdLine); 878 879 break; //already complained 879 880 } … … 884 885 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 885 886 } 886 xfree(pszWorkBuf, pszSrcFile, __LINE__);887 free(pszWorkBuf); 887 888 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 888 889 rstrip(temp.sig); … … 911 912 if (fCancelAction){ 912 913 fCancelAction = FALSE; 913 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);914 free(temp.pszCmdLine); 914 915 break; 915 916 } … … 920 921 save_associations(); 921 922 } 922 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);923 free(temp.pszCmdLine); 923 924 } 924 925 { … … 957 958 save_associations(); 958 959 } 959 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);960 free(temp.pszCmdLine); 960 961 } 961 962 break;
Note:
See TracChangeset
for help on using the changeset viewer.