commit | fa7b5b05e2edc6837f1220cad85caab0f5de7aab | [log] [tgz] |
---|---|---|
author | Austin English <austinenglish@gmail.com> | Tue Jul 27 01:36:03 2010 -0500 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Jul 28 16:28:19 2010 +0200 |
tree | 2d9df81b7fc6526bde2948e5dcd46dc8984197d6 | |
parent | 3ba830446d7549d061a6c4c984e86dbae8976cc6 [diff] |
dmusic: use a previously unused variable.
diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c index 021f1e2..6cb5634 100644 --- a/dlls/dmusic/port.c +++ b/dlls/dmusic/port.c
@@ -382,6 +382,11 @@ obj->pDirectSound = NULL; obj->pLatencyClock = NULL; hr = DMUSIC_CreateReferenceClockImpl(&IID_IReferenceClock, (LPVOID*)&obj->pLatencyClock, NULL); + if(hr != S_OK) + { + HeapFree(GetProcessHeap(), 0, obj); + return hr; + } if(0) {