clock: fix refcounting bug in gst_clock_set_master.
authorAlessandro Decina <alessandro.decina@collabora.co.uk>
Mon, 5 Jul 2010 11:01:53 +0000 (13:01 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Tue, 6 Jul 2010 08:46:42 +0000 (10:46 +0200)
commit538e82c6f7ff8f2652651d6201c32f27b0ae3a62
tree86387cb0cbe8dfee97cacd9b4f9860e4934ee1e4
parentdda86638110a97518c0d76aff405ffc0781c3573
clock: fix refcounting bug in gst_clock_set_

Make sure clock->clockid is unreffed before clock->master.
gst_clock_id_unschedule (clock->clockid) tries to access clock->master. If
clock->master is unreffed before and it's deallocated, _unschedule could access
free'd memory.
gst/gstclock.c