summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/emix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/emix.c b/src/lib/emix.c
index 589a844..8f40e1c 100644
--- a/src/lib/emix.c
+++ b/src/lib/emix.c
@@ -255,6 +255,12 @@ emix_backend_set(const char *backend)
255 Eina_Module *module; 255 Eina_Module *module;
256 256
257 EINA_SAFETY_ON_FALSE_RETURN_VAL((ctx && backend), EINA_FALSE); 257 EINA_SAFETY_ON_FALSE_RETURN_VAL((ctx && backend), EINA_FALSE);
258 if (ctx->loaded && ctx->loaded->ebackend_shutdown)
259 {
260 ctx->loaded->ebackend_shutdown();
261 ctx->loaded = NULL;
262 }
263
258 EINA_LIST_FOREACH(ctx->backends_names, l, name) 264 EINA_LIST_FOREACH(ctx->backends_names, l, name)
259 { 265 {
260 if (!strncmp(name, backend, strlen(name))) 266 if (!strncmp(name, backend, strlen(name)))