This website works better with JavaScript
Home
Explore
Help
Sign In
cpp
/
BansheeEngine
mirror of
https://github.com/larioteo/BansheeEngine.git
Watch
2
Star
0
Fork
0
Files
Issues
0
Wiki
Browse Source
BsFrameAlloc not resetting pointer position when cleared (Memory leak)
MarcoROG
8 years ago
parent
caab3c8c6b
commit
c9c1f659fb
1 changed files
with
2 additions
and
0 deletions
Unified View
Show Diff Stats
2
0
Source/BansheeUtility/Source/BsFrameAlloc.cpp
+ 2
- 0
Source/BansheeUtility/Source/BsFrameAlloc.cpp
View File
@@ -235,6 +235,8 @@ namespace bs
allocBlock(totalBytes);
allocBlock(totalBytes);
}
}
+ else
+ mBlocks[0]->mFreePtr = 0;
}
}
}
}