[glibmm/glibmm-2-68] 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-68] Glib::wrap_register_init(): Don't use g_quark_from_static_string()
- Date: Mon, 4 Oct 2021 14:10:42 +0000 (UTC)
commit 7bb1471510195e5b904d9d9b9b9695253a7b74c4
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]