summaryrefslogtreecommitdiffstats
path: root/src/gc-anchored.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc-anchored.cpp')
-rw-r--r--src/gc-anchored.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gc-anchored.cpp b/src/gc-anchored.cpp
index 3f4cfc12d..91055c968 100644
--- a/src/gc-anchored.cpp
+++ b/src/gc-anchored.cpp
@@ -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;