[glibmm] Glib::wrap_register_init(): Don't use g_quark_from_static_string()



commit 79aee0889b7be4fcacd89258da75b20720e408ff
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Oct 4 13:46:25 2021 +0200

    Glib::wrap_register_init(): Don't use g_quark_from_static_string()
    
    Replace it by g_quark_from_string().
    g_quark_from_static_string() shall not be used, if glibmm (but not glib)
    is loaded and unloaded several times.
    Fixes #96

 glib/glibmm/wrap.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/glibmm/wrap.cc b/glib/glibmm/wrap.cc
index 08f0309e..a3647530 100644
--- a/glib/glibmm/wrap.cc
+++ b/glib/glibmm/wrap.cc
@@ -49,9 +49,9 @@ wrap_register_init()
 
   if (!Glib::quark_)
   {
-    Glib::quark_ = g_quark_from_static_string("glibmm__Glib::quark_");
+    Glib::quark_ = g_quark_from_string("glibmm__Glib::quark_");
     Glib::quark_cpp_wrapper_deleted_ =
-      g_quark_from_static_string("glibmm__Glib::quark_cpp_wrapper_deleted_");
+      g_quark_from_string("glibmm__Glib::quark_cpp_wrapper_deleted_");
   }
 
   if (!wrap_func_table)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]