mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix potential nullptr dereference in Slider::ScopedDragNotification destructor
This commit is contained in:
parent
3fac215534
commit
b3a6e796f9
1 changed files with 2 additions and 1 deletions
|
|
@ -1363,7 +1363,8 @@ Slider::ScopedDragNotification::ScopedDragNotification (Slider& s)
|
|||
|
||||
Slider::ScopedDragNotification::~ScopedDragNotification()
|
||||
{
|
||||
sliderBeingDragged.pimpl->sendDragEnd();
|
||||
if (sliderBeingDragged.pimpl != nullptr)
|
||||
sliderBeingDragged.pimpl->sendDragEnd();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue