1
0
Fork 0
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:
ed 2021-10-08 14:25:37 +01:00
parent 3fac215534
commit b3a6e796f9

View file

@ -1363,7 +1363,8 @@ Slider::ScopedDragNotification::ScopedDragNotification (Slider& s)
Slider::ScopedDragNotification::~ScopedDragNotification()
{
sliderBeingDragged.pimpl->sendDragEnd();
if (sliderBeingDragged.pimpl != nullptr)
sliderBeingDragged.pimpl->sendDragEnd();
}
//==============================================================================