uri-asset: Ensure that the discoverer stops on deinit.
authorYeongjin Jeong <yeongjin.jeong@navercorp.com>
Mon, 15 Apr 2019 09:37:58 +0000 (18:37 +0900)
committerYeongjin Jeong <yeongjin.jeong@navercorp.com>
Mon, 15 Apr 2019 09:37:58 +0000 (18:37 +0900)
commit05d919a2ebf17d218ed46cad2fb422559f36dec5
treebb3c4ff33032a43a47a55faae0d25eda4ab4d359
parent6b40569e7e19bc3e34817a60770a3dc2ee4d2133
uri-asset: Ensure that the discoverer stops on deinit.

Discoverer maintain a referernce on the discoverer object while
the async timeout callback is alive to prevent a potential crash
if the object is freed while the callback is pending.

But if g_main_context is released before calling the timeout callback,
the discoverer pointer which was weak referenced from GESUriClipAssetClass
will not be disposed because the discoverer object is not finalized.
ges/ges-uri-asset.c