X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fextended_panels.cpp;h=018a697f0bdd94018434d10c4cb127c06a1471c8;hb=19933fe7a674ee6d1253821a656507a6a712f8d0;hp=9e1d30e3949b4b8785f22ca7bd89fc38662333a6;hpb=ab1e2b524cb535d8c2ef1a7914f359d679d83136;p=vlc diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 9e1d30e394..018a697f0b 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -279,7 +279,10 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add ) psz_parser = psz_string; if( asprintf( &psz_string, ( *psz_string ) ? "%s:%s" : "%s%s", psz_string, psz_name ) == -1 ) + { + free( psz_parser ); return; + } free( psz_parser ); } else