فهرست منبع

BsFrameAlloc not resetting pointer position when cleared (Memory leak)

MarcoROG 8 سال پیش
والد
کامیت
c9c1f659fb
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Source/BansheeUtility/Source/BsFrameAlloc.cpp

+ 2 - 0
Source/BansheeUtility/Source/BsFrameAlloc.cpp

@@ -235,6 +235,8 @@ namespace bs
 
 				allocBlock(totalBytes);
 			}
+			else
+				mBlocks[0]->mFreePtr = 0;
 		}
 	}