Valgrind issues in FeatherPad::TabBar and FeatherPad::TextEdit::event #690
cepamoi
started this conversation in
Show and tell
Replies: 3 comments
-
Thank you very much for your detailed comment! Although I've seen no issue in practice, those Valgrind warnings are very important. I'll do as you explained. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Done in 97b54f0 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You're welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I ran Valgrind on FeatherPad 1.3.3. And Valgrind reports the two following issues:
Calling setMouseTracking(true) in the constructors of the TabBar and TextEdit classes triggers an event.
Thus, the TabBar::event() and TextEdit::event() functions are called.
These functions checks the member variables noTabDND_ and highlighter_ (if (!noTabDND_ ... and if (highlighter_... ).
But these variables have not yet been initialized. Hence the Valgrind errors.
To fix these issues, the member variables noTabDND_ and highlighter_ should be initialized BEFORE the calls to setMouseTracking(true) in the constructors of the TabBar and TextEdit classes.
Beta Was this translation helpful? Give feedback.
All reactions