Browse Source

BsFrameAlloc not resetting pointer position when cleared (Memory leak)

MarcoROG 8 years ago
parent
commit
c9c1f659fb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/BansheeUtility/Source/BsFrameAlloc.cpp

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

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