Changeset 1039 for trunk/dll/tools.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/tools.c

    r1009 r1039  
    3535#include "strutil.h"                    // GetPString
    3636#include "fm3dll.h"
     37#include "fortify.h"
    3738
    3839#pragma data_seg(DATA1)
     
    5253  qtloaded = TRUE;
    5354  for (x = 0; x < 50 && quicktool[x]; x++) {
    54     xfree(quicktool[x], pszSrcFile, __LINE__);
     55    free(quicktool[x]);
    5556    quicktool[x] = NULL;
    5657  }
     
    268269        xfree(info->help, pszSrcFile, __LINE__);
    269270        xfree(info->text, pszSrcFile, __LINE__);
    270         xfree(info, pszSrcFile, __LINE__);
     271        free(info);
    271272        fToolsChanged = TRUE;
    272273        break;
     
    366367    xfree(tool->help, pszSrcFile, __LINE__);
    367368    xfree(tool->text, pszSrcFile, __LINE__);
    368     xfree(tool, pszSrcFile, __LINE__);
     369    free(tool);
    369370    tool = next;
    370371  }
Note: See TracChangeset for help on using the changeset viewer.