summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gui/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 9b08abf16e..76ff63102a 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -254,7 +254,7 @@ void guiLoadSubtitle( char * name )
mp_msg( MSGT_GPLAYER,MSGL_INFO,"[gui] Delete subtitles.\n" );
sub_free( subtitles );
subtitles=NULL;
- sub_name=NULL;
+ gfree( (void **)&sub_name );
vo_sub=NULL;
if ( vo_osd_list )
{
@@ -562,7 +562,7 @@ int guiGetEvent( int type,char * arg )
// -- subtitle
#ifdef USE_SUB
- sub_name=guiIntfStruct.Subtitlename;
+ sub_name=gstrdup( guiIntfStruct.Subtitlename );
stream_dump_type=0;
if ( gtkSubDumpMPSub ) stream_dump_type=4;
if ( gtkSubDumpSrt ) stream_dump_type=6;