Changeset 1029 for trunk/dll/collect.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/collect.c

    r1018 r1029  
    785785    }
    786786    xfree(mp1, pszSrcFile, __LINE__);
     787# ifdef FORTIFY
     788  Fortify_LeaveScope();
     789# endif
    787790    return 0;
    788791
     
    14641467    if (mp1) {
    14651468      if (!dcd) {
    1466         xfree(mp1, pszSrcFile, __LINE__);
     1469        xfree(mp1, pszSrcFile, __LINE__);
     1470# ifdef FORTIFY
     1471  Fortify_LeaveScope();
     1472# endif
    14671473        Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    14681474      }
     
    14711477          Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
    14721478          xfree(mp1, pszSrcFile, __LINE__);
     1479# ifdef FORTIFY
     1480  Fortify_LeaveScope();
     1481# endif
    14731482        }
    14741483      }
     
    15961605            if (p) {
    15971606              if (!PostMsg(hwnd, UM_COLLECTFROMFILE, MPFROMP(p), MPVOID))
    1598                 xfree(p, pszSrcFile, __LINE__);
     1607                xfree(p, pszSrcFile, __LINE__);
     1608# ifdef FORTIFY
     1609  Fortify_LeaveScope();
     1610# endif
    15991611            }
    16001612          }
     
    26752687                           (INT) mp1, (CHAR *)mp2, dcd->hwndFrame);
    26762688      xfree((CHAR *)mp2, pszSrcFile, __LINE__);
     2689# ifdef FORTIFY
     2690  Fortify_LeaveScope();
     2691# endif
    26772692      return MRFROMLONG(ret);
    26782693    }
Note: See TracChangeset for help on using the changeset viewer.