Explicit call of paint destructor in order add Camera more than once

This commit is contained in:
baydam
2019-10-18 17:04:33 +00:00
parent 037f0cc7aa
commit ba858ba68c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ CameraImpl::CameraImpl() :
CameraImpl::~CameraImpl()
{
_camera->stop();
delete _camera;
delete _cameraSurface;
}
+1
View File
@@ -105,6 +105,7 @@ bool MappingManager::removePaint(uid paintId)
Q_ASSERT(idx != -1);
paintVector.remove(idx);
paintMap.remove(paintId);
paint->~Paint(); // FIX ME: Explicit call of paint destructor in order add Camera more than once
return true;
}
else