From 04739b2d1f7ffcecb6f8398afdcc81e41921d1b4 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sun, 16 May 2010 14:24:34 +0200 Subject: initialize all member variables, otherwise unclean state in some circumstances (valgrind complained a lot about ::updateGeometry() accessing uninitialized variables) --- src/FbTk/FbWindow.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 956415d..e098e11 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -79,7 +79,8 @@ FbWindow::FbWindow(int screen_num, 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 @@ FbWindow::FbWindow(const FbWindow &parent, 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) { -- cgit v0.11.2