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

    r1038 r1039  
    415415                      WinSetWindowText(hwndAutoview, obuff);
    416416                  }
    417                   xfree(obuff, pszSrcFile, __LINE__);
     417                  free(obuff);
    418418                }
    419                 xfree(ibuff, pszSrcFile, __LINE__);
     419                free(ibuff);
    420420              }
    421421              DosClose(handle);
     
    510510                if (*pszBuf)
    511511                  WinSetWindowText(hwndAutoview, pszBuf);
    512                 xfree(pszBuf, pszSrcFile, __LINE__);
     512                free(pszBuf);
    513513              }
    514514            }
     
    544544              rc = DosQueryPathInfo((CHAR *)mp1, FIL_QUERYEASFROMLIST,
    545545                                    (PVOID) & eaop, (ULONG) sizeof(EAOP2));
    546               xfree(pgealist, pszSrcFile, __LINE__);
     546              free(pgealist);
    547547              if (!rc) {
    548548                pfea = &eaop.fpFEA2List->list[0];
     
    594594                      }
    595595                      WinSetWindowText(hwndAutoMLE, pszBuf);
    596                       xfree(pszBuf, pszSrcFile, __LINE__);
     596                      free(pszBuf);
    597597                    }
    598598                  }
     
    608608                MLEsetreadonly(hwndAutoMLE, FALSE);
    609609              }
    610               xfree(pfealist, pszSrcFile, __LINE__);
     610              free(pfealist);
    611611            }
    612612          }
    613613        }
    614614      }
    615       xfree((CHAR *)mp1, pszSrcFile, __LINE__);
     615      free((CHAR *)mp1);
    616616# ifdef FORTIFY
    617617  Fortify_LeaveScope();
     
    798798              PutComments(hwnd, currfile, ea);
    799799              PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    800               xfree(ea, pszSrcFile, __LINE__);
     800              free(ea);
    801801# ifdef FORTIFY
    802802  Fortify_LeaveScope();
     
    851851          stopflag++;
    852852          if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID))
    853             xfree(cf, pszSrcFile, __LINE__);
     853            free(cf);
    854854# ifdef FORTIFY
    855855  Fortify_LeaveScope();
Note: See TracChangeset for help on using the changeset viewer.