--- hatari/src/gui-sdl/dlgDisk.c 2019/04/01 07:15:00 1.1.1.3 +++ hatari/src/gui-sdl/dlgDisk.c 2019/04/01 07:15:41 1.1.1.4 @@ -4,7 +4,7 @@ This file is distributed under the GNU Public License, version 2 or at your option any later version. Read the file gpl.txt for details. */ -const char DlgDisk_rcsid[] = "Hatari $Id: dlgDisk.c,v 1.1.1.3 2019/04/01 07:15:00 root Exp $"; +const char DlgDisk_rcsid[] = "Hatari $Id: dlgDisk.c,v 1.1.1.4 2019/04/01 07:15:41 root Exp $"; #include #include "main.h" @@ -107,14 +107,14 @@ static bool DlgDisk_BrowseDisk(char *dlg { File_ShrinkName(dlgname, realname, diskdlg[diskid].w); } - if (zip_path) - free(zip_path); } else { Floppy_SetDiskFileNameNone(drive); dlgname[0] = '\0'; } + if (zip_path) + free(zip_path); free(selname); return TRUE; }