[vlc] Re: VLC start/stop

Gildas Bazin gbazin at altern.org
Tue Dec 21 10:29:02 CET 2004


On Monday 20 December 2004 16:59, Rick Davis wrote:
> All,
>  I am creating an interfaceless VLC object. I am seeing a > 2MByte
> memory leak using the following start/stop sequence. Am I missing 
anything?
> It also appears to be crashing the heap after shutdown. I am using version
> 0.7.1.
> 
> Command line args passed to VLC_Init are
> -vvv --udp-caching 1000 udp://@224.2.1.252:2000
> 
> VLC_Create();
> VLC_Init(0);
> VLC_Play(0);
> ...playing and now we want to stop
> VLC_Die(0);
> VLC_Stop(0);
> VLC_Destroy(0);
> free (argv[0];
> free (argv);
> free (psz_Args);
> 

Can you try this instead:
VLC_Create();
VLC_Init(0);
VLC_Play(0);
...
VLC_Stop(0);
VLC_CleanUp(0);
VLC_Destroy(0);

And as Benjamin suggested, 0.7.1 is quite old and it's difficult for us (and 
not very useful) to check if it had memory leaks.

--
Gildas

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list