소스 검색

Update BitmapHandler.cpp

Nordsoft91 3 년 전
부모
커밋
640ebcdca4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mapeditor/BitmapHandler.cpp

+ 1 - 1
mapeditor/BitmapHandler.cpp

@@ -117,7 +117,7 @@ namespace BitmapHandler
 			{
 				logGlobal->error("Failed to open %s as H3 PCX!", fname);
 			}
-			return image;
+			return image.copy(); //copy must be returned here because buffer readFile.first used to build QImage will be cleaned after this line
 		}
 		else
 		{ //loading via QImage