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

    r1037 r1039  
    520520      WinSetMultWindowPos(WinQueryAnchorBlock(hwnd), &swp[2], numtools);
    521521    }
    522     xfree(swp, pszSrcFile, __LINE__);
     522    free(swp);
    523523  }
    524524  WinInvalidateRect(hwnd, NULL, TRUE);
     
    10141014              }
    10151015            }
    1016             xfree(s, pszSrcFile, __LINE__);
     1016            free(s);
    10171017          }
    10181018        }
     
    15601560        PostMsg(hwnd, UM_FOCUSME, MPVOID, MPVOID);
    15611561        PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    1562         xfree(pszCmdLine, pszSrcFile, __LINE__);
     1562        free(pszCmdLine);
    15631563      }
    15641564    }
     
    62626262                                  MPFROMP(pszStateName),
    62636263                                  MPVOID)) {
    6264                   xfree(pszStateName, pszSrcFile, __LINE__);
     6264                  free(pszStateName);
    62656265                }
    62666266              }
     
    63366336        if (!PostMsg(MainObjectHwnd, UM_RESTORE, MPFROMP(pszDefaultStateName), MPVOID))
    63376337          // 05 Feb 08 SHL fixme to complain?
    6338           xfree(pszDefaultStateName, pszSrcFile, __LINE__);
     6338          free(pszDefaultStateName);
    63396339      }
    63406340    }
Note: See TracChangeset for help on using the changeset viewer.