Ignore:
Timestamp:
Jun 26, 2007, 12:06:12 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp

    r188 r191  
    456456    IncludeFileInfo.FilesNum=*(long *)(buffer+i2);
    457457    i2+=sizeof(long);
    458     IncludeFileInfo.ppFileNames=(char **)HeapAlloc(hHeap,0,IncludeFileInfo.FilesNum*sizeof(char *));
     458    IncludeFileInfo.ppFileNames=(char **)malloc(IncludeFileInfo.FilesNum*sizeof(char *));
    459459    for(i3=0;i3<IncludeFileInfo.FilesNum;i3++){
    460460        if(buffer[i2]=='\0') break;
    461         IncludeFileInfo.ppFileNames[i3]=(char *)HeapAlloc(hHeap,0,lstrlen(buffer+i2)+1);
     461        IncludeFileInfo.ppFileNames[i3]=(char *)malloc(lstrlen(buffer+i2)+1);
    462462        lstrcpy(IncludeFileInfo.ppFileNames[i3],buffer+i2);
    463463        i2+=lstrlen(buffer+i2)+1;
     
    905905
    906906
    907     if(OpBuffer) HeapDefaultFree(OpBuffer);
     907    if(OpBuffer) free(OpBuffer);
    908908    OpBuffer=(char *)malloc(SizeOf_CodeSection);
    909909
     
    976976    //インクルード情報を解放
    977977    for(i2=0;i2<IncludeFileInfo.FilesNum;i2++)
    978         HeapDefaultFree(IncludeFileInfo.ppFileNames[i2]);
    979     HeapDefaultFree(IncludeFileInfo.ppFileNames);
     978    {
     979        free(IncludeFileInfo.ppFileNames[i2]);
     980    }
     981    free(IncludeFileInfo.ppFileNames);
    980982
    981983    //クラスに関するメモリを解放
Note: See TracChangeset for help on using the changeset viewer.