Code

Dutch tips tutorial added.
[inkscape.git] / src / gc-anchored.cpp
index 3f4cfc12dcf8cbe1a3022882495dbfe451f480f5..0350e6bdda447abece2e1b8c37e4d1cba17221e6 100644 (file)
@@ -72,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;
@@ -91,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 :