summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-16 11:59:38 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-16 11:59:38 +0900
commit3a35e6471831769ed315261404388990497fa30c (patch)
treea477ed33dfc5cbf199fdaead11cd98424e52ecdd /src
parentb9225fd710baeddd2ab6256e3b7b20e2e47e3633 (diff)
ector: reorder destructor code to make sure that freed pointer are not possibly accessed during destruction.
Summary: Depends on D7276 Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7277
Diffstat (limited to 'src')
-rw-r--r--src/lib/ector/ector_renderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ector/ector_renderer.c b/src/lib/ector/ector_renderer.c
index 1c1b4ac5d1..fd8581aa27 100644
--- a/src/lib/ector/ector_renderer.c
+++ b/src/lib/ector/ector_renderer.c
@@ -12,10 +12,10 @@
12static void 12static void
13_ector_renderer_efl_object_destructor(Eo *obj, Ector_Renderer_Data *pd) 13_ector_renderer_efl_object_destructor(Eo *obj, Ector_Renderer_Data *pd)
14{ 14{
15 efl_destructor(efl_super(obj, MY_CLASS));
16
15 if (pd->m) free(pd->m); 17 if (pd->m) free(pd->m);
16 efl_unref(pd->surface); 18 efl_unref(pd->surface);
17
18 efl_destructor(efl_super(obj, MY_CLASS));
19} 19}
20 20
21static Efl_Object * 21static Efl_Object *