]> git.sesse.net Git - vlc/commit
Unload interface plugin in StopThread rather than destroy
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Mar 2009 18:14:11 +0000 (20:14 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Mar 2009 18:14:11 +0000 (20:14 +0200)
commit352cbd7c4f1750641c7daa3308631b74029449e7
treea0c1004cb75ceff628ea20cd2dbdc8d87544941a
parenta276d9aa737e353a7c2bf5e19b36216a8c47528b
Unload interface plugin in StopThread rather than destroy

That is the same problem as we already had with other object types.
The interface really needs to unload when its owner stops it, not when
the reference counter drops to zero. This fixes a reference dead loop
when an interface yields itself (such as Qt through the view menu) and
a crash if an interface releases itself last (unmapping the running
caller code).
src/interface/interface.c