mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 23:45:26 +00:00
WASAPI: fix double unref of IMMDevice
This commit is contained in:
parent
2514e19195
commit
843ea287b9
|
@ -794,6 +794,7 @@ static int refresh_devices(SoundIoPrivate *si) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMMDevice_AddRef(rd.mm_device);
|
||||||
dev_w_shared->mm_device = rd.mm_device;
|
dev_w_shared->mm_device = rd.mm_device;
|
||||||
dev_w_raw->mm_device = rd.mm_device;
|
dev_w_raw->mm_device = rd.mm_device;
|
||||||
rd.mm_device = nullptr;
|
rd.mm_device = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue