summaryrefslogtreecommitdiff
path: root/src/bindings/eina_cxx/eina_log.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/eina_cxx/eina_log.hh')
-rw-r--r--src/bindings/eina_cxx/eina_log.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/eina_cxx/eina_log.hh b/src/bindings/eina_cxx/eina_log.hh
index 77e30e56f1..5ec07446ea 100644
--- a/src/bindings/eina_cxx/eina_log.hh
+++ b/src/bindings/eina_cxx/eina_log.hh
@@ -148,7 +148,7 @@ struct log_domain : _domain_base<log_domain>
148 * @param color Color of the domain name. 148 * @param color Color of the domain name.
149 */ 149 */
150 log_domain(char const* name, char const* color = "black") 150 log_domain(char const* name, char const* color = "black")
151 : _domain( ::eina_log_domain_register(name, color)) 151 : _domain( (::eina_init(), ::eina_log_domain_register(name, color)) )
152 { 152 {
153 } 153 }
154 154
@@ -158,6 +158,7 @@ struct log_domain : _domain_base<log_domain>
158 ~log_domain() 158 ~log_domain()
159 { 159 {
160 ::eina_log_domain_unregister(_domain); 160 ::eina_log_domain_unregister(_domain);
161 ::eina_shutdown();
161 } 162 }
162 int domain_raw() const { return _domain; } 163 int domain_raw() const { return _domain; }
163private: 164private: