diff --git a/src/gc-anchored.cpp b/src/gc-anchored.cpp
index 3f4cfc12dcf8cbe1a3022882495dbfe451f480f5..0350e6bdda447abece2e1b8c37e4d1cba17221e6 100644 (file)
--- a/src/gc-anchored.cpp
+++ b/src/gc-anchored.cpp
void Anchored::release() const {
Debug::EventTracker<ReleaseEvent> tracker(this);
+ g_return_if_fail(_anchor);
if (!--_anchor->refcount) {
_free_anchor(_anchor);
_anchor = NULL;
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 :