aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pipe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 320c5c3a3..076185d2a 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -88,6 +88,11 @@ music_pipe_shift(struct music_pipe *mp)
assert(mp->size > 0);
assert(mp->tail_r != &chunk->next);
}
+
+#ifndef NDEBUG
+ /* poison the "next" reference */
+ chunk->next = (void*)0x01010101;
+#endif
}
g_mutex_unlock(mp->mutex);