[vlc-devel] gui/minimal_macosx memory issue
pdherbemont at free.fr
Mon Dec 7 22:55:48 CET 2009
On Mon, Dec 7, 2009 at 4:33 PM, Dilaroga dev <dilaroga at gmail.com> wrote:
> Hi, I'm using the native umbrella under Mac OS X called VLCKit and i've
> discovered an issue that causes the crash of the application that is using
> it. The problem occurs when i want to release some media players and video
> views objects that i've previously allocated in memory. Releasing the
> VLCMediaPlayer objects causes the crash of the application because of a
> message that is sent to an already released object (EXC_BAD_ACCESS). My
> sequences to clean up VLCKit's objects are : 1) call to -(void) stop: to
> each media player 2) removing from super view and releasing the video views
> 3) releasing the media players. The crash happens in the third step but the
> strange behaviour is that the code not always crashes (but very often).
This is happening, because VLCVideoView expects to be released after
ensuring that it has no more subviews.
This is a totally dumb requirement, so I just committed a fix.
Also, it expects its parent VLCMediaPlayer to be stopped. So I have
added some check for that.
Thanks for your report!
More information about the vlc-devel