Преглед изворни кода

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;
 		}
 	}