if we have already loaded the comp module, get out.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-06-11 16:43:09 +01:00
parent a47f3ba8fd
commit c351ba68eb
1 changed files with 2 additions and 0 deletions

View File

@ -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)))
{