~ubuntu-branches/ubuntu/vivid/wine/vivid

« back to all changes in this revision

Viewing changes to dlls/dsound/capture.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2008-05-30 08:48:53 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20080530084853-eoabeo8m5ai49vb5
Tags: 1.0-rc3-1ubuntu1
* New upstream release
  - Bugfixes only due to feature freeze pending 1.0 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
860
860
        if (This->notify)
861
861
            IDirectSoundNotify_Release((LPDIRECTSOUNDNOTIFY)This->notify);
862
862
 
 
863
        /* If driver manages its own buffer, IDsCaptureDriverBuffer_Release
 
864
           should have freed the buffer. Prevent freeing it again in
 
865
           IDirectSoundCaptureBufferImpl_Create */
 
866
        if (!(This->device->drvdesc.dwFlags & DSDDESC_USESYSTEMMEMORY))
 
867
            This->device->buffer = NULL;
 
868
 
863
869
        HeapFree(GetProcessHeap(), 0, This->notifies);
864
870
        HeapFree( GetProcessHeap(), 0, This );
865
871
        TRACE("(%p) released\n", This);