[glibmm] ObjectBase: Fixed refcount debugging message.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] ObjectBase: Fixed refcount debugging message.
- Date: Mon, 8 Nov 2010 15:05:13 +0000 (UTC)
commit 0f0e884e57c6cb58bb87b7c894635e3dd0edee2d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Mon Nov 8 15:50:14 2010 +0100
ObjectBase: Fixed refcount debugging message.
* glib/glibmm/objectbase.cc: A parameter passed to g_warning() in
destroy_notify_callback() describing a name of GObject should be indeed
a name, not a pointer to GObject.
ChangeLog | 8 ++++++++
glib/glibmm/objectbase.cc | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1066344..ebda356 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-11-08 Krzesimir Nowak <qdlacz gmail com>
+
+ ObjectBase: Fixed refcount debugging message.
+
+ * glib/glibmm/objectbase.cc: A parameter passed to g_warning() in
+ destroy_notify_callback() describing a name of GObject should be indeed
+ a name, not a pointer to GObject.
+
2010-11-07 José Alburquerque <jaalburqu svn gnome org>
UnixSocketAddress: Correct the wrapping of create() methods.
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc
index 87e9e0b..4798c1f 100644
--- a/glib/glibmm/objectbase.cc
+++ b/glib/glibmm/objectbase.cc
@@ -185,8 +185,8 @@ void ObjectBase::destroy_notify_callback_(void* data)
ObjectBase* cppObject = static_cast<ObjectBase*>(data); //Previously set with g_object_set_qdata_full().
#ifdef GLIBMM_DEBUG_REFCOUNTING
- g_warning("ObjectBase::destroy_notify_callback_: cppObject = %p, gobject_ = %p, gtypename = %s",
- (void*) cppObject, (void*) cppObject->gobject_, cppObject->gobject_);
+ g_warning("ObjectBase::destroy_notify_callback_: cppObject = %p, gobject_ = %p, gtypename = %s\n",
+ (void*) cppObject, (void*) cppObject->gobject_, G_OBJECT_TYPE_NAME(cppObject->gobject_));
#endif
if(cppObject) //This will be 0 if the C++ destructor has already run.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]