Changeset 1039 for trunk/dll/mle.c


Ignore:
Timestamp:
Jul 6, 2008, 12:16:21 AM (17 years ago)
Author:
Gregg Young
Message:

Removed unnecessary xfrees and included fortify.h where needed; moved several misplaced (x)frees;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mle.c

    r1029 r1039  
    252252    Dos_Error(MB_CANCEL, rc, h, pszSrcFile, __LINE__,
    253253              GetPString(IDS_OUTOFMEMORY));
    254     xfree(sel, pszSrcFile, __LINE__);
     254    free(sel);
    255255# ifdef FORTIFY
    256256  Fortify_LeaveScope();
     
    272272    if (sellen < 1) {
    273273      Runtime_Error(pszSrcFile, __LINE__, "len < 1");
    274       xfree(sel, pszSrcFile, __LINE__);
     274      free(sel);
    275275# ifdef FORTIFY
    276276  Fortify_LeaveScope();
     
    289289    SaveToClip(h, sel, TRUE);
    290290    DosFreeMem(temp);
    291     xfree(sel, pszSrcFile, __LINE__);
     291    free(sel);
    292292# ifdef FORTIFY
    293293  Fortify_LeaveScope();
     
    313313#endif
    314314      DosFreeMem(temp);
    315       xfree(sel, pszSrcFile, __LINE__);
     315      free(sel);
    316316# ifdef FORTIFY
    317317  Fortify_LeaveScope();
     
    389389#endif
    390390    DosFreeMem(temp);
    391     xfree(sel, pszSrcFile, __LINE__);
     391    free(sel);
    392392# ifdef FORTIFY
    393393  Fortify_LeaveScope();
     
    425425#endif
    426426  DosFreeMem(temp);
    427   xfree(sel, pszSrcFile, __LINE__);
     427  free(sel);
    428428# ifdef FORTIFY
    429429  Fortify_LeaveScope();
     
    594594          else
    595595            ret = FALSE;
    596           xfree(buffer, pszSrcFile, __LINE__);
     596          free(buffer);
    597597# ifdef FORTIFY
    598598  Fortify_LeaveScope();
     
    796796        _heap_check();
    797797#endif
    798         //xfree(bkg, pszSrcFile, __LINE__);
    799798        WinDestroyMsgQueue(thmq);
    800799      }
     800      else
     801        PostMsg(bkg->hwndReport, bkg->msg, MPVOID, MPVOID);
    801802      DecrThreadUsage();
    802803      WinTerminate(thab);
    803       xfree(bkg, pszSrcFile, __LINE__);
     804      free(bkg);
    804805      bkg = NULL;
    805806# ifdef FORTIFY
     
    809810    }
    810811    // fixme to be gone?
    811     if (bkg) {
     812    else {
    812813      PostMsg(bkg->hwndReport, bkg->msg, MPVOID, MPVOID);
    813       xfree(bkg, pszSrcFile, __LINE__);
     814      free(bkg);
    814815# ifdef FORTIFY
    815816  Fortify_LeaveScope();
Note: See TracChangeset for help on using the changeset viewer.