VirtualBox

Changeset 36391 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 24, 2011 10:39:29 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70744
Message:

dev/audio: consistent CoInit/Uninit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/dsoundaudio.c

    r35575 r36391  
    989989
    990990    if (!s->dsound) {
    991         return;
     991        goto dsound_audio_fini_exit;
    992992    }
    993993
     
    999999
    10001000    if (!s->dsound_capture) {
    1001         return;
     1001        goto dsound_audio_fini_exit;
    10021002    }
    10031003
     
    10071007    }
    10081008    s->dsound_capture = NULL;
     1009
     1010dsound_audio_fini_exit:
     1011    CoUninitialize();
    10091012}
    10101013
     
    10401043        dsound_log_hresult(hr);
    10411044#endif
     1045        CoUninitialize();
    10421046        return NULL;
    10431047    }
     
    10571061        }
    10581062        s->dsound = NULL;
     1063        CoUninitialize();
    10591064        return NULL;
    10601065    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette