[glibmm/glibmm-2-66] Glib::wrap_register_init(): Don't use g_quark_from_static_string()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-66] Glib::wrap_register_init(): Don't use g_quark_from_static_string()
- Date: Mon, 4 Oct 2021 11:48:28 +0000 (UTC)
commit f8b8e70fee19487df19019b4f8810715a7c77ad0
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 3e78c3b8..dd425774 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]