mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-19 04:13:24 +00:00
Fix further memory leaks
This commit is contained in:
parent
79d1610148
commit
020eb9d86c
@ -913,5 +913,6 @@ int main(int argc, char *argv[]) {
|
||||
#endif
|
||||
|
||||
glslang::FinalizeProcess();
|
||||
ILOG("Leaving main");
|
||||
return 0;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -297,6 +297,7 @@ public:
|
||||
OpenGLPipeline(GLRenderManager *render) : render_(render) {
|
||||
}
|
||||
~OpenGLPipeline() {
|
||||
ILOG("OpenGLPipeline released");
|
||||
for (auto &iter : shaders) {
|
||||
iter->Release();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user