From 9bb1ef27084724e43d26328ab827a0829c9efde0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 4 Nov 2013 12:21:49 +0900 Subject: [PATCH] elm/quicklaunch: Increment _elm_init_count in ql_init Apps call elm_shutdown before exiting. But when using Quiklaunch, elm_init has never been called, so the init count is still 0. This will be especially useful since programs compiled with -fPIC and linked with -pie can be loaded by Quicklaunch. --- legacy/elementary/src/lib/elm_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/elementary/src/lib/elm_main.c b/legacy/elementary/src/lib/elm_main.c index 39ef68a57a..ebf538b2dc 100644 --- a/legacy/elementary/src/lib/elm_main.c +++ b/legacy/elementary/src/lib/elm_main.c @@ -664,6 +664,7 @@ elm_quicklaunch_init(int argc, EINA_LOG_STATE_STOP, EINA_LOG_STATE_INIT); + _elm_init_count++; return _elm_ql_init_count; }