mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Showing the tip will in turn call getDesktopScaleFactor(), accessing the lastComponentUnderMouse. In some cases, it was possible for lastComponentUnderMouse to point to a deleted component, resulting in UB. There are two changes in this PR: - Using a SafePointer rather than a raw pointer ensures that calls to getDesktopScaleFactor() will always be safe, regardless of when they happen. - Moving the assignment of lastComponentUnderMouse to before the call to displayTipInternal() ensures that the returned scale factor is that of the component that the mouse is currently hovering. |
||
|---|---|---|
| .. | ||
| juce_analytics | ||
| juce_audio_basics | ||
| juce_audio_devices | ||
| juce_audio_formats | ||
| juce_audio_plugin_client | ||
| juce_audio_processors | ||
| juce_audio_utils | ||
| juce_box2d | ||
| juce_core | ||
| juce_cryptography | ||
| juce_data_structures | ||
| juce_dsp | ||
| juce_events | ||
| juce_graphics | ||
| juce_gui_basics | ||
| juce_gui_extra | ||
| juce_opengl | ||
| juce_osc | ||
| juce_product_unlocking | ||
| juce_video | ||
| CMakeLists.txt | ||