mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Smart Pointers: Add a new enum for indicating if a smart point should increment a reference count or not
This commit is contained in:
parent
8931d45fe9
commit
e68627c9ed
68 changed files with 243 additions and 160 deletions
|
|
@ -606,7 +606,7 @@ private:
|
|||
if (audioSessionControl == nullptr)
|
||||
return;
|
||||
|
||||
sessionEventCallback = becomeComSmartPtrOwner (new SessionEventCallback (*this));
|
||||
sessionEventCallback = ComSmartPtr { new SessionEventCallback (*this), IncrementRef::no };
|
||||
audioSessionControl->RegisterAudioSessionNotification (sessionEventCallback);
|
||||
}
|
||||
|
||||
|
|
@ -1897,7 +1897,7 @@ private:
|
|||
if (! check (enumerator.CoCreateInstance (__uuidof (MMDeviceEnumerator))))
|
||||
return {};
|
||||
|
||||
notifyClient = becomeComSmartPtrOwner (new ChangeNotificationClient (this));
|
||||
notifyClient = ComSmartPtr (new ChangeNotificationClient (this), IncrementRef::no);
|
||||
enumerator->RegisterEndpointNotificationCallback (notifyClient);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue