summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_desktop.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-20 11:12:54 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-20 11:56:46 +0200
commitc99b028a7c723e02190ac16101e0e525afc82f7e (patch)
tree862fb0518816ba66ea9a5b533c715ba990e6a8a9 /src/lib/efreet/efreet_desktop.c
parent5eaaae420ee3848b135166bf271bed6dee8f38c6 (diff)
efreet: Release log domain on evil error
Diffstat (limited to '')
-rw-r--r--src/lib/efreet/efreet_desktop.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_desktop.c b/src/lib/efreet/efreet_desktop.c
index 8b49993105..54b8c05091 100644
--- a/src/lib/efreet/efreet_desktop.c
+++ b/src/lib/efreet/efreet_desktop.c
@@ -90,7 +90,7 @@ efreet_desktop_init(void)
90 if (!evil_sockets_init()) 90 if (!evil_sockets_init())
91 { 91 {
92 ERR("Could not initialize Winsock system"); 92 ERR("Could not initialize Winsock system");
93 return 0; 93 goto error;
94 } 94 }
95#endif 95#endif
96 96
@@ -107,6 +107,12 @@ efreet_desktop_init(void)
107 NULL, NULL); 107 NULL, NULL);
108 108
109 return 1; 109 return 1;
110#ifdef HAVE_EVIL
111error:
112 eina_log_domain_unregister(_efreet_desktop_log_dom);
113 _efreet_desktop_log_dom = -1;
114 return 0;
115#endif
110} 116}
111 117
112/** 118/**