X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwoptions.c;h=d685200ac1656275a174d64a5cc0cc9b4cc5d0d2;hb=873f7b33a08877e546e16f63a3a70dae8b3633aa;hp=003878a9aaf4dd7351772678600cd2fc3e782b52;hpb=5017dc767149c89922d8af7d46eb821a373eb2d0;p=xboard.git diff --git a/winboard/woptions.c b/winboard/woptions.c index 003878a..d685200 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;