Changeset 1029 for trunk/dll/walkem.c


Ignore:
Timestamp:
Jun 23, 2008, 3:30:16 AM (17 years ago)
Author:
Gregg Young
Message:

Fixed early memory free; Added free_... functions to make fortify checking easier; Added fortify scopes; Delete now moves to trash can on systems with the xworkplace trash can installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/walkem.c

    r1027 r1029  
    2828  29 Feb 08 GKY Refactor global command line variables to notebook.h
    2929  19 Jun 08 JBS Ticket 227: Allow temporary saving/deleting of the shutdown state of directory containers
     30  22 Jun 08 GKY Add free_?dir for fortify testing
    3031
    3132***********************************************************************/
     
    534535}
    535536
     537VOID free_ldir(VOID)
     538{
     539  LINKDIRS *info, *next;
     540
     541  info = ldirhead;
     542  while (info) {
     543    next = info->next;
     544    xfree(info->path, pszSrcFile, __LINE__);
     545    xfree(info, pszSrcFile, __LINE__);
     546    info = next;
     547  }
     548  ldirhead = NULL;
     549}
     550
     551VOID free_udir(VOID)
     552{
     553  LINKDIRS *info, *next;
     554
     555  info = udirhead;
     556  while (info) {
     557    next = info->next;
     558    xfree(info->path, pszSrcFile, __LINE__);
     559    xfree(info, pszSrcFile, __LINE__);
     560    info = next;
     561  }
     562  udirhead = NULL;
     563}
     564
    536565VOID FillPathListBox(HWND hwnd, HWND hwnddrive, HWND hwnddir, CHAR * pszPath,
    537566                     BOOL nounwriteable)
Note: See TracChangeset for help on using the changeset viewer.