]> git.sesse.net Git - vlc/commit
intf_Destroy(): use vlc_object_release() and a destructor instead
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 28 May 2008 17:56:15 +0000 (20:56 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 28 May 2008 17:56:15 +0000 (20:56 +0300)
commit358c28c444e3063246c6d966b0834b1078018fdf
tree67687a29657e24491ef5e88ee9a23475381a2349
parent2e7d3d7d1581487800fbdb820e26559b5f43de15
intf_Destroy(): use vlc_object_release() and a destructor instead

While reading this, you will find a bunch of:
  while (find (VLC_OBJECT_INTERFACE))
     release; release;

These are of course plain BUGS (which are neither introduced nor fixed
by this commit). Imagine, for instance, what happens if two threads run
the code above at the same time... they end up releasing the interface
once too many.
include/vlc_interface.h
modules/access/vcdx/demux.c
modules/codec/cmml/cmml.c
modules/control/ntservice.c
modules/control/rc.c
src/interface/interface.c
src/libvlc-common.c
src/libvlccore.sym