callbacks-later-cdel-fix-20030213
authorDerrick Brashear <shadow@dementia.org>
Thu, 13 Feb 2003 22:28:38 +0000 (22:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Feb 2003 22:28:38 +0000 (22:28 +0000)
if something else ends up trying to e.g. break delayed callbacks over the same
callback that we're playing with in break later callbacks, the manipulation in
CDelPtr becomes important

src/viced/callback.c

index 6226998..35aba9e 100644 (file)
@@ -1396,7 +1396,7 @@ restart:
                    }
                    TDel(cb);
                    HDel(cb);
-                   FreeCB(cb);
+                   CDel(cb, 0); /* Don't let CDel clean up the fe */
                    /* leave hold for MultiBreakVolumeCallBack to clear */
                }
                /* relink chain */