Code

Use subdirectories with icon sizes.
[inkscape.git] / src / gc-anchored.cpp
index baf36c0c95c51ffb4670565939b54c2620b36586..0350e6bdda447abece2e1b8c37e4d1cba17221e6 100644 (file)
@@ -13,6 +13,7 @@
 #include "gc-anchored.h"
 #include "debug/event-tracker.h"
 #include "debug/simple-event.h"
+#include "debug/demangle.h"
 #include "util/share.h"
 #include "util/format.h"
 
@@ -32,7 +33,7 @@ public:
     {
         _addProperty("base", Util::format("%p", Core::base(const_cast<Anchored *>(object))));
         _addProperty("pointer", Util::format("%p", object));
-        _addProperty("class", Util::share_static_string(typeid(*object).name()));
+        _addProperty("class", Debug::demangle(typeid(*object).name()));
         _addProperty("new-refcount", Util::format("%d", object->_anchored_refcount() + bias));
     }
 };
@@ -71,6 +72,7 @@ void Anchored::anchor() const {
 
 void Anchored::release() const {
     Debug::EventTracker<ReleaseEvent> tracker(this);
+    g_return_if_fail(_anchor);
     if (!--_anchor->refcount) {
         _free_anchor(_anchor);
         _anchor = NULL;
@@ -90,4 +92,4 @@ void Anchored::release() const {
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :