Skip to content

Commit

Permalink
WASAPI: fix double unref of IMMDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Aug 20, 2015
1 parent 2514e19 commit 843ea28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ static int refresh_devices(SoundIoPrivate *si) {
return err;
}

IMMDevice_AddRef(rd.mm_device);
dev_w_shared->mm_device = rd.mm_device;
dev_w_raw->mm_device = rd.mm_device;
rd.mm_device = nullptr;
Expand Down

0 comments on commit 843ea28

Please sign in to comment.