From: Byrial Jensen Date: Sat, 17 Dec 2011 21:54:34 +0000 (+0100) Subject: Fix a memory leak in Sound Options X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=005ffb141611bf0b56f72b54548705549c7a04ec;p=xboard.git Fix a memory leak in Sound Options --- diff --git a/xoptions.c b/xoptions.c index f297ab4..c1ae427 100644 --- a/xoptions.c +++ b/xoptions.c @@ -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); }