On Tue, Jul 27, 2010 at 9:36 AM, Austin English <austinenglish at gmail.com> wrote: > Try 3: Use tabs, not spaces. > Try 2: return hr, free memory There's still a memory leak in this function if IDirectMusicPortImpl_QueryInterface fails. Would be nice to fix that also :) Octavian