projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Add codes for Dali Windows Backend
[platform/core/uifw/dali-core.git]
/
dali
/
internal
/
update
/
nodes
/
scene-graph-layer.h
diff --git
a/dali/internal/update/nodes/scene-graph-layer.h
b/dali/internal/update/nodes/scene-graph-layer.h
old mode 100644
(file)
new mode 100755
(executable)
index
f56bdd3
..
26b217e
--- a/
dali/internal/update/nodes/scene-graph-layer.h
+++ b/
dali/internal/update/nodes/scene-graph-layer.h
@@
-334,8
+334,14
@@
inline void SetDepthTestDisabledMessage( EventThreadServices& eventThreadService
// Template specialisation for OwnerPointer<Layer>, because delete is protected
template <>
// Template specialisation for OwnerPointer<Layer>, because delete is protected
template <>
-void OwnerPointer<Dali::Internal::SceneGraph::Layer>::Reset();
-
+inline void OwnerPointer<Dali::Internal::SceneGraph::Layer>::Reset()
+{
+ if (mObject != NULL)
+ {
+ Dali::Internal::SceneGraph::Node::Delete(mObject);
+ mObject = NULL;
+ }
+}
} // namespace Internal
} // namespace Dali
} // namespace Internal
} // namespace Dali