Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Managers/CameraManager.cpp

Diff revisions: vs.
  @@ -7,7 +7,10 @@
7 7
8 8 namespace Divide {
9 9
10 - CameraManager::CameraManager(Kernel* const kernelPtr) : FrameListener(), _kernelPtr(kernelPtr), _camera(nullptr), _addNewListener(false)
10 + CameraManager::CameraManager(Kernel* const kernelPtr) : FrameListener(),
11 + _kernelPtr(kernelPtr),
12 + _camera(nullptr),
13 + _addNewListener(false)
11 14 {
12 15 REGISTER_FRAME_LISTENER(this, 0);
13 16 }
  @@ -18,9 +21,8 @@
18 21 PRINT_FN(Locale::get("CAMERA_MANAGER_REMOVE_CAMERAS"));
19 22 for (CameraPool::value_type& it : _cameraPool) {
20 23 it.second->unload();
21 - MemoryManager::SAFE_DELETE( it.second );
22 24 }
23 - _cameraPool.clear();
25 + MemoryManager::DELETE_HASHMAP(_cameraPool);
24 26 _cameraPoolGUID.clear();
25 27 }
26 28