summaryrefslogtreecommitdiff
path: root/glib/glibmm/objectbase.cc
diff options
context:
space:
mode:
authorKrzesimir Nowak <qdlacz@gmail.com>2010-11-08 15:50:14 +0100
committerKrzesimir Nowak <qdlacz@gmail.com>2010-11-08 15:50:14 +0100
commit0f0e884e57c6cb58bb87b7c894635e3dd0edee2d (patch)
tree449ddc9da304e13b9126e9ce1103258f732e508b /glib/glibmm/objectbase.cc
parent61d3f7d345df46d5ef8439cab8217e4cd1b296f3 (diff)
downloadglibmm-0f0e884e57c6cb58bb87b7c894635e3dd0edee2d.tar.gz
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.
Diffstat (limited to 'glib/glibmm/objectbase.cc')
-rw-r--r--glib/glibmm/objectbase.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc
index 87e9e0bb..4798c1fc 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.