Fix memory leak on closing view
This commit is contained in:
@@ -36,6 +36,12 @@ using namespace OpenVulkano;
|
|||||||
|
|
||||||
-(void) dealloc {
|
-(void) dealloc {
|
||||||
manager->ShutDown();
|
manager->ShutDown();
|
||||||
|
delete manager;
|
||||||
|
app = nullptr;
|
||||||
|
//TODO figure out where these two references are held
|
||||||
|
[_openVulkanoView release];
|
||||||
|
[_openVulkanoView release];
|
||||||
|
_openVulkanoView = nil;
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user