From 6e018b0f5a11814e27e0982810df8db47f27f16a Mon Sep 17 00:00:00 2001 From: pontscho Date: Thu, 30 Aug 2001 21:39:31 +0000 Subject: [PATCH] fix load git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1790 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/psignal.c | 4 +--- 1 file changed, 1 insertion(+), 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: