]> git.sesse.net Git - vlc/commit
objects: Send a vlc_object_kill from vlc_object_destroy() to make sure vlc_object_rel...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 22 Mar 2008 23:51:03 +0000 (00:51 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 22 Mar 2008 23:51:03 +0000 (00:51 +0100)
commitf0fbb2b3eeb132bf961902f156e31431d43a6938
treebd3b7c294b84bf1835fdfdb8fed3bc7f581605fd
parent78e39f0d6ddac05f824b1beb6bfc712088b17fdc
objects: Send a vlc_object_kill from vlc_object_destroy() to make sure vlc_object_release() can properly free all the allocated resources when the refcount reach zero.

Previously you need to send a vlc_object_kill() prior to a vlc_object_release() to get your object actually destroyed, which rendered the refcounting unusuable in some cases.
src/misc/objects.c