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

    r1030 r1039  
    6767#include "command.h"                // LINKCMDS
    6868#include "fm3dll.h"
     69#include "fortify.h"
    6970
    7071#pragma data_seg(DATA1)
     
    232233        }
    233234      }
    234       xfree(s, pszSrcFile, __LINE__);
     235      free(s);
    235236    }
    236237    if (releaseme)
     
    851852                  if (!PostMsg(hwnd,
    852853                               UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    853                     xfree(filename, pszSrcFile, __LINE__);
     854                    free(filename);
    854855                }
    855856                if (stricmp(testname, pci->pszFileName)) {
     
    859860                    if (!PostMsg(hwnd,
    860861                                 UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    861                       xfree(filename, pszSrcFile, __LINE__);
     862                      free(filename);
    862863                  }
    863864                }
     
    10051006    else if (ret != 0)
    10061007      return -1;
    1007     xfree(pszCmdLine, pszSrcFile, __LINE__);
     1008    free(pszCmdLine);
    10081009  }
    10091010  return 0;
     
    19981999                                  GetPString(IDS_SUBJ) : GetPString(IDS_NAME));
    19992000    WinSetWindowText(hwnd, s);
    2000     xfree(s, pszSrcFile, __LINE__);
     2001    free(s);
    20012002  }
    20022003}
     
    20172018             !(flWindowAttr & CV_TEXT)) ? GetPString(IDS_MINI) : NullStr);
    20182019    WinSetWindowText(hwnd, s);
    2019     xfree(s, pszSrcFile, __LINE__);
     2020    free(s);
    20202021  }
    20212022}
     
    20372038      sprintf(s, "F:%s", GetPString(IDS_ALLTEXT));
    20382039    WinSetWindowText(hwnd, s);
    2039     xfree(s, pszSrcFile, __LINE__);
     2040    free(s);
    20402041  }
    20412042}
     
    21822183      }
    21832184      numswitches = y;
    2184       xfree(pswb, pszSrcFile, __LINE__);
     2185      free(pswb);
    21852186      DosPostEventSem(CompactSem);
    21862187    }
Note: See TracChangeset for help on using the changeset viewer.