Changeset 191 in dev for trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Jun 26, 2007, 12:06:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r188 r191 456 456 IncludeFileInfo.FilesNum=*(long *)(buffer+i2); 457 457 i2+=sizeof(long); 458 IncludeFileInfo.ppFileNames=(char **) HeapAlloc(hHeap,0,IncludeFileInfo.FilesNum*sizeof(char *));458 IncludeFileInfo.ppFileNames=(char **)malloc(IncludeFileInfo.FilesNum*sizeof(char *)); 459 459 for(i3=0;i3<IncludeFileInfo.FilesNum;i3++){ 460 460 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); 462 462 lstrcpy(IncludeFileInfo.ppFileNames[i3],buffer+i2); 463 463 i2+=lstrlen(buffer+i2)+1; … … 905 905 906 906 907 if(OpBuffer) HeapDefaultFree(OpBuffer);907 if(OpBuffer) free(OpBuffer); 908 908 OpBuffer=(char *)malloc(SizeOf_CodeSection); 909 909 … … 976 976 //インクルード情報を解放 977 977 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); 980 982 981 983 //クラスに関するメモリを解放
Note:
See TracChangeset
for help on using the changeset viewer.