Fix broken evDropSubtitle.
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 12 Apr 2018 12:46:21 +0000 (12:46 +0000)
committerib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 12 Apr 2018 12:46:21 +0000 (12:46 +0000)
Don't free guiInfo.SubtitleFilename, because not necessarily
the loaded guiInfo.SubtitleFilename is requested to be dropped,
but the currently displayed subtitle.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38071 b3059339-0415-0410-9bf9-f77b7e298cf2

gui/ui/actions.c

index 3da1e2e..634d201 100644 (file)
@@ -243,7 +243,6 @@ play:
         break;
 
     case evDropSubtitle:
-        nfree(guiInfo.SubtitleFilename);
         mplayerLoadSubtitle(NULL);
         break;