Fix a memory leak in Sound Options
authorByrial Jensen <byrial@vip.cybercity.dk>
Sat, 17 Dec 2011 21:54:34 +0000 (22:54 +0100)
committerByrial Jensen <byrial@vip.cybercity.dk>
Sat, 17 Dec 2011 21:54:34 +0000 (22:54 +0100)
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);
 }