Fix further memory leaks

This commit is contained in:
Henrik Rydgård committed 2018-02-04 13:42:04 +01:00
1 parent 79d1610148
commit 020eb9d86c
3 files changed
+5

No files matched your search

+3
View File
@@ -56,6 +56,9 @@ GLRenderManager::~GLRenderManager() {
for (int i = 0; i < MAX_INFLIGHT_FRAMES; i++) {
_assert_(frameData_[i].deleter.IsEmpty());
}
// Was anything deleted during shutdown?
deleter_.Perform();
// _assert_(deleter_.IsEmpty());
if (!useThread_) {
// The main thread is also the render thread.