[vlc-devel] Re: [PATCH] Abnormal memory growing (macosx)
jmvallat_vlc at mac.com
jmvallat_vlc at mac.com
Thu Dec 15 00:39:07 CET 2005
Don't ask me about the -manage method ! Because... as far as I can
see, it's even worse than that: this code is running in a thread, and
does call -terminate when the 'intf' dies (by the end of the
application).
The problem is that this -terminate method is also called by the main
thread (in function Run())... few nano-second before.
And if you look at the code of -terminate, you'll see that calling it
twice is .. not a good idea.
This is why VLC.app does often crash when you quit it. (Well, there
is perhaps another problem (caused by a memory overrun in src/
playlist/view.c) but I'm not quite yet sure...)).
--
On 15 déc. 05, at 00:24, Derk-Jan Hartman wrote:
> This doesn't seem like the proper way to solve this issue.
> Wouldn't it be better to alloc init the date and then release it
> after the sleep ?
>
> why is there even a Cocoa sleep here anyways, a normal sleep()
> should just work fine as well don't you agree ?
>
> Come to think of it, the manageVolumeSlider called there shouldn't
> be their either. the whole manage: function isn't allowed to do any
> GUI work at all.
>
> Same for the seScrollField.
>
> DJ
>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list