Changeset 985 for trunk/dll/comp.c
- Timestamp:
- Mar 1, 2008, 2:37:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r959 r985 51 51 18 Jan 08 SHL Honor filters in actions 52 52 20 Jan 08 GKY Compare dialog now saves and restores size and position 53 29 Feb 08 GKY Use xfree where appropriate 54 29 Feb 08 GKY Refactor global command line variables to notebook.h 53 55 54 56 ***********************************************************************/ … … 76 78 #include "comp.h" 77 79 #include "fm3dll.h" 80 #include "notebook.h" // External compare/dircompare 78 81 79 82 typedef struct … … 140 143 DosFindClose(hdir); 141 144 } 142 free(mask);145 xfree(mask); 143 146 } 144 free(pffb);147 xfree(pffb); 145 148 } 146 149 } … … 174 177 } 175 178 } 176 free(sf);179 xfree(sf); 177 180 } 178 181 } … … 678 681 WinTerminate(hab); 679 682 } 680 free(cmp);683 xfree(cmp); 681 684 } 682 685 … … 735 738 WinTerminate(hab); 736 739 } 737 free(cmp);740 xfree(cmp); 738 741 } 739 742 … … 780 783 pciSa = xmalloc(sizeof(PCNRITEM) * numS, pszSrcFile, __LINE__); 781 784 if (!pciSa) { 782 free(pciDa);785 xfree(pciDa); 783 786 return; 784 787 } … … 813 816 goto Restart; 814 817 } 815 free(pciDa);816 free(pciSa);818 xfree(pciDa); 819 xfree(pciSa); 817 820 Runtime_Error(pszSrcFile, __LINE__, "numD %u != x %lu", numD, x); 818 821 return; … … 840 843 goto Restart; 841 844 } 842 free(pciSa);843 free(pciDa);845 xfree(pciSa); 846 xfree(pciDa); 844 847 Runtime_Error(pszSrcFile, __LINE__, "numS (%lu) != x (%lu)", numS, x); 845 848 return; … … 1284 1287 } 1285 1288 1286 free(pciSa);1287 free(pciDa);1289 xfree(pciSa); 1290 xfree(pciDa); 1288 1291 1289 1292 if (fUpdateHideButton) { … … 1325 1328 pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__); 1326 1329 if (!pffbArray) { 1327 free(maskstr);1330 xfree(maskstr); 1328 1331 return; 1329 1332 } … … 1393 1396 } 1394 1397 1395 free(maskstr);1396 free(pffbArray);1398 xfree(maskstr); 1399 xfree(pffbArray); 1397 1400 1398 1401 // DbgMsg(pszSrcFile, __LINE__, "FillDirList finish %s", str); … … 1975 1978 } // if insufficient resources 1976 1979 1977 if (filesl) 1978 free(filesl); // Free header - have already freed elements 1980 xfree(filesl); // Free header - have already freed elements 1979 1981 filesl = NULL; 1980 if (filesr) 1981 free(filesr); 1982 xfree(filesr); 1982 1983 filesr = NULL; 1983 1984 … … 2046 2047 WinTerminate(hab); 2047 2048 } 2048 free(cmp);2049 xfree(cmp); 2049 2050 DosPostEventSem(CompactSem); 2050 2051 … … 2607 2608 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2608 2609 WinDismissDlg(hwnd, 0); 2609 free(forthread);2610 xfree(forthread); 2610 2611 } 2611 2612 else { … … 2887 2888 Runtime_Error(pszSrcFile, __LINE__, 2888 2889 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2889 free(sf);2890 xfree(sf); 2890 2891 } 2891 2892 } … … 2939 2940 Runtime_Error(pszSrcFile, __LINE__, 2940 2941 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2941 free(forthread);2942 xfree(forthread); 2942 2943 } 2943 2944 else { … … 3062 3063 Runtime_Error(pszSrcFile, __LINE__, 3063 3064 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 3064 free(forthread);3065 xfree(forthread); 3065 3066 } 3066 3067 else { … … 3218 3219 WinSendMsg(cmp->dcd.hwndObject, WM_CLOSE, MPVOID, MPVOID); 3219 3220 } 3220 free(cmp);3221 xfree(cmp); 3221 3222 } 3222 3223 EmptyCnr(hwndLeft);
Note:
See TracChangeset
for help on using the changeset viewer.