[vlc-devel] [PATCH 2/3] Lua: fix memory leaks of string variables

Hannes Domani ssbssa at yahoo.de
Fri Mar 13 19:34:29 CET 2015


Is this the correct check for a string to free after var_Get()?:

 if( ( i_type & VLC_VAR_CLASS ) == VLC_VAR_STRING )
   free( val.psz_string );


Regards
Domani Hannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Lua-fix-memory-leaks-of-string-variables.patch
Type: application/octet-stream
Size: 1273 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150313/c7dc6406/attachment.obj>


More information about the vlc-devel mailing list