diff --git a/audio/dsound.c b/audio/dsound.c index c231b58a55..a8c94959ee 100644 --- a/audio/dsound.c +++ b/audio/dsound.c @@ -260,7 +260,7 @@ static void dsound_free(void *data) IDirectSoundBuffer_Release(ds->dsb); } - if (ds) + if (ds->ds) IDirectSound_Release(ds->ds); if (ds->event)