1e21daf781
Fix the valgrind warning from the use of an uninitialized member variable by setting the DEFAULT value for m_currentNativeCursor in the constructors member initializer list. This fixes the following warning caused by the SetNativeCursorStyle method call later on the constructor. ==66660== Warning: client switching stacks? SP change: 0x1ffeffee40 --> 0xdf7efe8 ==66660== to suppress, use: --max-stackframe=137187819096 or greater ==66660== Conditional jump or move depends on uninitialised value(s) ==66660== at 0x13F0764E: UnknownInlinedFun (graphics_abstraction_layer.cpp:276) ==66660== by 0x13F0764E: KIGFX::GAL::GAL(KIGFX::GAL_DISPLAY_OPTIONS&) (graphics_abstraction_layer.cpp:78) Error can be reproduced and checked from the log.txt by launching kicad with valgrind command "valgrind --leak-check=full kicad > log.txt 2>&1" and then launching the footprint editor from the kicad main dialog. Fixes https://gitlab.com/kicad/code/kicad/-/issues/8784 Signed-off-by: Mika Laitio <lamikr@gmail.com> |
||
---|---|---|
.. | ||
cairo | ||
opengl | ||
color4d.cpp | ||
cursors.cpp | ||
dpi_scaling.cpp | ||
gal_display_options.cpp | ||
graphics_abstraction_layer.cpp | ||
hidpi_gl_canvas.cpp | ||
stroke_font.cpp |