summaryrefslogtreecommitdiff
path: root/glib/glibmm
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-10-04 13:46:25 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-10-04 16:11:05 +0200
commit79aee0889b7be4fcacd89258da75b20720e408ff (patch)
tree83db184e0ccd8a49e4c47eff24c648c9ad931794 /glib/glibmm
parenta4ae837e8e964aa500b328de865b27442a6b7165 (diff)
downloadglibmm-79aee0889b7be4fcacd89258da75b20720e408ff.tar.gz
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
Diffstat (limited to 'glib/glibmm')
-rw-r--r--glib/glibmm/wrap.cc4
1 files 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)