Changeset 959 for trunk/dll/draglist.c


Ignore:
Timestamp:
Feb 18, 2008, 1:47:31 AM (18 years ago)
Author:
Gregg Young
Message:

Use xfree where appropriate. Check that buffer exists following all xmallocs. Stopped at eas.c with xfree checking. One remaining xmalloc without test in dirsize.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/draglist.c

    r907 r959  
    722722      _heap_check();
    723723#endif
    724       free(ppDItem);
     724      xfree(ppDItem);
    725725      ppDItem = NULL;                   // Remember gone
    726726      DosPostEventSem(CompactSem);
     
    746746    }
    747747  }
    748   if (ppDItem)
    749     free(ppDItem);
    750   if (paDImgIcons)
    751     free(paDImgIcons);
     748  xfree(ppDItem);
     749  xfree(paDImgIcons);
    752750  return hDrop;
    753751}
Note: See TracChangeset for help on using the changeset viewer.