mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Explicit call of paint destructor in order add Camera more than once
This commit is contained in:
@@ -30,6 +30,7 @@ CameraImpl::CameraImpl() :
|
||||
|
||||
CameraImpl::~CameraImpl()
|
||||
{
|
||||
_camera->stop();
|
||||
delete _camera;
|
||||
delete _cameraSurface;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user