diff options
Diffstat (limited to 'Gui/mplayer/psignal.c')
-rw-r--r-- | Gui/mplayer/psignal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Gui/mplayer/psignal.c b/Gui/mplayer/psignal.c index 3af2283af1..0d8eb9bdf3 100644 --- a/Gui/mplayer/psignal.c +++ b/Gui/mplayer/psignal.c @@ -266,9 +266,7 @@ void mplMainSigHandler( int s ) } break; case evFileLoaded: - if ( Filename ) free( Filename ); - Filename=(char *)malloc( strlen( gtkShMem->fs.dir ) + strlen( gtkShMem->fs.filename ) + 2 ); - strcpy( Filename,gtkShMem->fs.dir ); strcat( Filename,"/" ); strcat( Filename,gtkShMem->fs.filename ); + strcpy( mplShMem->Filename,gtkShMem->fs.dir ); strcat( mplShMem->Filename,"/" ); strcat( mplShMem->Filename,gtkShMem->fs.filename ); if ( mplMainAutoPlay ) mplGeneralTimer=1; break; case evMessageBox: |