summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-02-20 17:39:27 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-20 17:39:27 +0100
commit789633b321dbb0669b93ba2da3bbaaede3de6233 (patch)
tree90b76941803caf5399d525454741e162df940f77 /src/lib/evas/common/evas_draw_main.c
parent6bb4ecd65db4cb674ca3dc6ef30ceb1a22445a90 (diff)
Revert "evas: refcounting initialisation and protect things."
This reverts commit 216397bea635d93266aca73f9e724979375f2e3b. We do have some engine that are doing partial shutdown outside of the protected function, leading to a crash.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_draw_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/evas/common/evas_draw_main.c b/src/lib/evas/common/evas_draw_main.c
index ed1f95158e..5eae8fb672 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -32,13 +32,9 @@ evas_common_draw_context_cutouts_del(Cutout_Rects* rects, int idx)
32 } 32 }
33} 33}
34 34
35static int _init_count = 0;
36
37EAPI void 35EAPI void
38evas_common_init(void) 36evas_common_init(void)
39{ 37{
40 if (_init_count++) return ;
41
42 evas_common_cpu_init(); 38 evas_common_cpu_init();
43 39
44 evas_common_blend_init(); 40 evas_common_blend_init();
@@ -57,8 +53,6 @@ evas_common_init(void)
57EAPI void 53EAPI void
58evas_common_shutdown(void) 54evas_common_shutdown(void)
59{ 55{
60 if (--_init_count) return ;
61
62 evas_font_dir_cache_free(); 56 evas_font_dir_cache_free();
63 evas_common_image_cache_free(); 57 evas_common_image_cache_free();
64 evas_common_scale_sample_shutdown(); 58 evas_common_scale_sample_shutdown();