Changeset 985 for trunk/dll/collect.c


Ignore:
Timestamp:
Mar 1, 2008, 2:37:14 AM (17 years ago)
Author:
Gregg Young
Message:

Update sizes dialog (ticket 44); Make max command line length user settable (ticket 199); use xfree for free in most cases (ticket 212); initial code to check for valid ini file (ticket 102); Some additional refactoring and structure rework; Some documentation updates;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r958 r985  
    4747  15 Feb 08 GKY Fix attempt to free container items that were never inserted
    4848  15 Feb 08 GKY Fix "collect" so it updates recollected files and unhides them if needed
     49  29 Feb 08 GKY Use xfree where appropriate
    4950
    5051***********************************************************************/
     
    898899            Runtime_Error(pszSrcFile, __LINE__,
    899900                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    900             free(wk);
     901            xfree(wk);
    901902            FreeListInfo((LISTINFO *) mp1);
    902903          }
     
    926927            Runtime_Error(pszSrcFile, __LINE__,
    927928                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    928             free(wk);
     929            xfree(wk);
    929930            FreeListInfo((LISTINFO *) mp1);
    930931          }
     
    951952      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID);
    952953      FreeList(dcd->lastselection);
    953       free(dcd);
     954      xfree(dcd);
    954955    }
    955956    DosPostEventSem(CompactSem);
     
    14461447    if (mp1) {
    14471448      if (!dcd) {
    1448         free(mp1);
     1449        xfree(mp1);
    14491450        Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    14501451      }
     
    14521453        if (!PostMsg(dcd->hwndObject, UM_COLLECTFROMFILE, mp1, mp2)) {
    14531454          Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
    1454           free(mp1);
     1455          xfree(mp1);
    14551456        }
    14561457      }
     
    15781579            if (p) {
    15791580              if (!PostMsg(hwnd, UM_COLLECTFROMFILE, MPFROMP(p), MPVOID))
    1580                 free(p);
     1581                xfree(p);
    15811582            }
    15821583          }
     
    20882089            }
    20892090            else
    2090               free(li);
     2091              xfree(li);
    20912092          }
    20922093        }
     
    28372838                   IDS_WINCREATEWINDOW);
    28382839        PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    2839         free(dcd);
     2840        xfree(dcd);
    28402841        hwndFrame = (HWND) 0;
    28412842      }
Note: See TracChangeset for help on using the changeset viewer.