Change-Id: I17c23505bfc79b2239e316420ffbd48fda0892f9
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
TestApplication::~TestApplication()
{
+ if(DALI_LIKELY(mCore))
+ {
+ mCore->ContextDestroyed();
+ }
Dali::Integration::Log::UninstallLogFunction();
delete mCore;
}
TestGraphicsApplication::~TestGraphicsApplication()
{
+ if(DALI_LIKELY(mCore))
+ {
+ mCore->ContextDestroyed();
+ }
mGraphicsController.Shutdown();
Dali::Integration::Log::UninstallLogFunction();
delete mCore;
TestGraphicsApplication::~TestGraphicsApplication()
{
+ if(DALI_LIKELY(mCore))
+ {
+ mCore->ContextDestroyed();
+ }
mGraphics.GetController().Shutdown();
Dali::Integration::Log::UninstallLogFunction();
delete mCore;
inline void clear()
{
free(ptr);
+ ptr = nullptr;
capacity = 0;
dataSize = 0;
}
void CommandBuffer::DestroyResource()
{
- // Nothing to do
+ if(DALI_LIKELY(mCommandPool))
+ {
+ mCommandPool->Rollback(true); // Discard memory here!
+ }
+ mCommandPool.reset();
}
bool CommandBuffer::InitializeResource()