initialize all member variables, otherwise unclean state in some circumstances (valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
Mathias Gumz akira at fluxbox dot org
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -79,7 +79,8 @@ int class_type):
FbDrawable(), m_parent(0), m_screen_num(screen_num), - m_x(0), m_y(0), m_width(0), m_height(0), + m_window(0), + m_x(0), m_y(0), m_width(1), m_height(1), m_border_width(0), m_border_color(0), m_depth(0),@@ -99,8 +100,12 @@ long eventmask,
bool override_redirect, bool save_unders, unsigned int depth, int class_type): + FbDrawable(), m_parent(&parent), m_screen_num(parent.screenNumber()), + m_window(0), + m_x(0), m_y(0), + m_width(1), m_height(1), m_destroy(true), m_lastbg_color_set(false), m_lastbg_color(0), m_lastbg_pm(0), m_renderer(0) {