summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/minicontrol-provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minicontrol-provider.c b/src/minicontrol-provider.c
index f72f076..6576d58 100644
--- a/src/minicontrol-provider.c
+++ b/src/minicontrol-provider.c
@@ -263,6 +263,7 @@ EXPORT_API Evas_Object *minicontrol_create_window(const char *name,
pd->state = MINICTRL_STATE_READY;
pd->obj = win;
pd->create_time = time(NULL);
+ g_rec_mutex_init(&pd->mutex);
elm_win_autodel_set(win, EINA_TRUE);
@@ -281,7 +282,6 @@ EXPORT_API Evas_Object *minicontrol_create_window(const char *name,
MINICTRL_DBUS_SIG_TO_PROVIDER,
_sig_to_provider_handler_cb, pd);
pd->event_callback = event_callback;
- g_rec_mutex_init(&pd->mutex);
__minicontrol_provider_list_add(pd);
WARN("new minicontrol created - win(%p), name(%s)", win, pd->name);
@@ -509,6 +509,7 @@ EXPORT_API Evas_Object *minicontrol_win_add(const char *name)
pd->name = name_inter;
pd->state = MINICTRL_STATE_READY;
pd->obj = win;
+ g_rec_mutex_init(&pd->mutex);
elm_win_autodel_set(win, EINA_TRUE);
@@ -523,7 +524,6 @@ EXPORT_API Evas_Object *minicontrol_win_add(const char *name)
pd->running_sh = _minictrl_dbus_sig_handle_attach(
MINICTRL_DBUS_SIG_RUNNING_REQ, _running_req_cb, pd);
- g_rec_mutex_init(&pd->mutex);
__minicontrol_provider_list_add(pd);
WARN("new minicontrol created - win(%p), name(%s)", win, pd->name);