mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +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
|
|
@ -134,7 +134,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
|
|||
sampleGrabber->SetMediaType (&mt);
|
||||
}
|
||||
|
||||
callback = becomeComSmartPtrOwner (new GrabberCallback (*this));
|
||||
callback = ComSmartPtr (new GrabberCallback (*this), IncrementRef::no);
|
||||
hr = sampleGrabber->SetCallback (callback, 1);
|
||||
|
||||
hr = graphBuilder->AddFilter (sampleGrabberBase, _T ("Sample Grabber"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue