Changeset 1039 for trunk/dll/walkem.c
- Timestamp:
- Jul 6, 2008, 12:16:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/walkem.c
r1034 r1039 49 49 #include "notebook.h" // targetdirectory 50 50 #include "fm3dll.h" 51 #include "fortify.h" 51 52 52 53 #pragma data_seg(DATA1) … … 129 130 pFirstSetup = pld->next; 130 131 xfree(pld->path, pszSrcFile, __LINE__); 131 xfree(pld, pszSrcFile, __LINE__);132 free(pld); 132 133 } 133 134 return 1; // Found or added … … 143 144 pld->path = xstrdup(name, pszSrcFile, __LINE__); 144 145 if (!pld->path) { 145 xfree(pld, pszSrcFile, __LINE__);146 free(pld); 146 147 return -1; 147 148 } … … 195 196 if (!PrfQueryProfileData(fmprof, FM3Str, pszLastSetups, pszBuf, &l)) { 196 197 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, "PrfQueryProfileData"); 197 xfree(pszBuf, pszSrcFile, __LINE__);198 free(pszBuf); 198 199 return; 199 200 } … … 201 202 if (ulDataBytes != l) { 202 203 Runtime_Error(pszSrcFile, __LINE__, "PrfQueryProfileData reported %u expected %u", l, ulDataBytes); 203 xfree(pszBuf, pszSrcFile, __LINE__);204 free(pszBuf); 204 205 return; 205 206 } … … 214 215 pld = xmalloc(sizeof(LINKDIRS), pszSrcFile, __LINE__); 215 216 if (!pld) { 216 xfree(pszBuf, pszSrcFile, __LINE__);217 free(pszBuf); 217 218 return; 218 219 } 219 220 pld->path = xstrdup(psz, pszSrcFile, __LINE__); 220 221 if (!pld->path) { 221 xfree(pszBuf, pszSrcFile, __LINE__);222 xfree(pld, pszSrcFile, __LINE__);222 free(pszBuf); 223 free(pld); 223 224 return; 224 225 } … … 235 236 } // while 236 237 237 xfree(pszBuf, pszSrcFile, __LINE__);238 free(pszBuf); 238 239 239 240 fSetupsLoaded = TRUE; … … 338 339 info->path = xstrdup(s, pszSrcFile, __LINE__); 339 340 if (!info->path) 340 xfree(info, pszSrcFile, __LINE__);341 free(info); 341 342 else { 342 343 info->next = NULL; … … 432 433 ldirhead = info->next; 433 434 xfree(info->path, pszSrcFile, __LINE__); 434 xfree(info, pszSrcFile, __LINE__);435 free(info); 435 436 break; 436 437 } … … 444 445 info->path = xstrdup(path, pszSrcFile, __LINE__); 445 446 if (!info->path) 446 xfree(info, pszSrcFile, __LINE__);447 free(info); 447 448 else { 448 449 info->next = NULL; … … 486 487 udirhead = info->next; 487 488 xfree(info->path, pszSrcFile, __LINE__); 488 xfree(info, pszSrcFile, __LINE__);489 free(info); 489 490 fUdirsChanged = TRUE; 490 491 return TRUE; … … 503 504 ldirhead = info->next; 504 505 xfree(info->path, pszSrcFile, __LINE__); 505 xfree(info, pszSrcFile, __LINE__);506 free(info); 506 507 return TRUE; 507 508 } … … 527 528 ldirhead = info->next; 528 529 xfree(info->path, pszSrcFile, __LINE__); 529 xfree(info, pszSrcFile, __LINE__);530 free(info); 530 531 return TRUE; 531 532 } … … 545 546 next = info->next; 546 547 xfree(info->path, pszSrcFile, __LINE__); 547 xfree(info, pszSrcFile, __LINE__);548 free(info); 548 549 info = next; 549 550 } … … 559 560 next = info->next; 560 561 xfree(info->path, pszSrcFile, __LINE__); 561 xfree(info, pszSrcFile, __LINE__);562 free(info); 562 563 info = next; 563 564 } … … 1224 1225 if (wa->changed) 1225 1226 WinSendMsg(hwnd, UM_SETUP3, MPVOID, MPVOID); 1226 xfree(wa, pszSrcFile, __LINE__);1227 free(wa); 1227 1228 WinDismissDlg(hwnd, 0); 1228 1229 break;
Note:
See TracChangeset
for help on using the changeset viewer.