From c351ba68eb0daa3495065dd36f93f2342e49358a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 11 Jun 2013 16:43:09 +0100 Subject: [PATCH] if we have already loaded the comp module, get out. Signed-off-by: Chris Michael --- src/modules/wl_x11/e_mod_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/wl_x11/e_mod_main.c b/src/modules/wl_x11/e_mod_main.c index f17b66046..f532fa18a 100644 --- a/src/modules/wl_x11/e_mod_main.c +++ b/src/modules/wl_x11/e_mod_main.c @@ -22,6 +22,8 @@ EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Wl_X11" }; EAPI void * e_modapi_init(E_Module *m) { + if (_e_x11_comp) return NULL; + /* try to allocate space for comp structure */ if (!(_e_x11_comp = E_NEW(E_Compositor_X11, 1))) {