Clean to cothread context when destroyed

Original commit message from CVS:
Clean to cothread context when destroyed
This commit is contained in:
Wim Taymans 2001-12-18 16:52:01 +00:00
parent 4771e9affc
commit 741051f00d

View file

@ -116,6 +116,13 @@ gst_basic_scheduler_init (GstScheduler *scheduler)
static void
gst_basic_scheduler_dispose (GObject *object)
{
GstScheduler *sched = GST_SCHEDULER (object);
cothread_context *ctx;
ctx = GST_BIN (GST_SCHED_PARENT (sched))->threadcontext;
cothread_free (ctx);
G_OBJECT_CLASS (parent_class)->dispose (object);
}