Fix possible crash on 64-bit systems when copying game or position
[xboard.git] / xoptions.c
index f297ab4..c1ae427 100644 (file)
@@ -1289,6 +1289,7 @@ void SoundOptionsProc(w, event, prms, nprms)
      String *prms;
      Cardinal *nprms;
 {
+   free(soundFiles[2]);
    soundFiles[2] = strdup("*");
    GenericPopUp(soundOptions, _("Sound Options"), 0);
 }