mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-31 10:32:30 +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
|
#endif
|
||||||
|
|
||||||
glslang::FinalizeProcess();
|
glslang::FinalizeProcess();
|
||||||
|
ILOG("Leaving main");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,9 @@ GLRenderManager::~GLRenderManager() {
|
|||||||
for (int i = 0; i < MAX_INFLIGHT_FRAMES; i++) {
|
for (int i = 0; i < MAX_INFLIGHT_FRAMES; i++) {
|
||||||
_assert_(frameData_[i].deleter.IsEmpty());
|
_assert_(frameData_[i].deleter.IsEmpty());
|
||||||
}
|
}
|
||||||
|
// Was anything deleted during shutdown?
|
||||||
|
deleter_.Perform();
|
||||||
|
// _assert_(deleter_.IsEmpty());
|
||||||
|
|
||||||
if (!useThread_) {
|
if (!useThread_) {
|
||||||
// The main thread is also the render thread.
|
// The main thread is also the render thread.
|
||||||
|
@ -297,6 +297,7 @@ public:
|
|||||||
OpenGLPipeline(GLRenderManager *render) : render_(render) {
|
OpenGLPipeline(GLRenderManager *render) : render_(render) {
|
||||||
}
|
}
|
||||||
~OpenGLPipeline() {
|
~OpenGLPipeline() {
|
||||||
|
ILOG("OpenGLPipeline released");
|
||||||
for (auto &iter : shaders) {
|
for (auto &iter : shaders) {
|
||||||
iter->Release();
|
iter->Release();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user