X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=blobdiff_plain;f=winboard%2Fwoptions.c;h=d685200ac1656275a174d64a5cc0cc9b4cc5d0d2;hp=003878a9aaf4dd7351772678600cd2fc3e782b52;hb=873f7b33a08877e546e16f63a3a70dae8b3633aa;hpb=91d8e5853ca580769cc130aa6ea004869118d171 diff --git a/winboard/woptions.c b/winboard/woptions.c index 003878a9..d685200a 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -2000,7 +2000,7 @@ SoundOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) tmp.data = NULL; MyLoadSound(&tmp); MyPlaySound(&tmp); - if (tmp.data != NULL) free(tmp.data); + if (tmp.data != NULL) FreeResource(tmp.data); // technically obsolete fn, but tmp.data is NOT malloc'd mem if (tmp.name != NULL) free(tmp.name); return TRUE;