1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Component: Fix potential bad access during mouse double click

This commit is contained in:
attila 2022-12-22 15:14:15 +01:00 committed by Tom Poole
parent 8fa90784a1
commit 49cc7a0e09

View file

@ -2568,7 +2568,8 @@ void Component::internalMouseUp (MouseInputSource source, const PointerState& re
// check for double-click
if (me.getNumberOfClicks() >= 2)
{
mouseDoubleClick (checker.eventWithNearestParent());
if (checker.nearestNonNullParent() == this)
mouseDoubleClick (checker.eventWithNearestParent());
if (checker.shouldBailOut())
return;