Browse Source

Release BundleCompiler

Daniele Bartolini 12 năm trước cách đây
mục cha
commit
9509f17b6e
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      engine/Device.cpp

+ 9 - 1
engine/Device.cpp

@@ -81,7 +81,7 @@ Device::Device() :
 
 	m_is_init(false),
 	m_is_running(false),
-	m_is_paused(true),
+	m_is_paused(false),
 
 	m_frame_count(0),
 
@@ -296,6 +296,14 @@ void Device::shutdown()
 		CE_DELETE(m_allocator, m_filesystem);
 	}
 
+	#if (defined(LINUX) || defined(WINDOWS)) && (defined(CROWN_DEBUG) || defined(CROWN_DEVELOPMENT))
+		Log::i("Releasing BundleCompiler...");
+		if (m_bundle_compiler)
+		{
+			CE_DELETE(m_allocator, m_bundle_compiler);
+		}
+	#endif
+
 	m_allocator.clear();
 
 	m_is_init = false;