mirror of
https://github.com/defold/extension-camera
synced 2025-09-27 08:52:19 +02:00
Fixed crash when running start_capture a second time
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user