Fixed crash when running start_capture a second time

This commit is contained in:
Mathias Westerdahl
2017-11-17 14:12:08 +01:00
parent 49f954ae04
commit 652242fe85
4 changed files with 177 additions and 19 deletions

View File

@@ -390,6 +390,7 @@ int CameraPlatform_StopCapture()
{
[g_Camera.m_Delegate stopCamera];
[g_Camera.m_Delegate release];
g_Camera.m_Delegate = 0;
dmBuffer::Destroy(g_Camera.m_VideoBuffer);
g_Camera.m_VideoBuffer = 0;