initialize all member variables, otherwise unclean state in some circumstances

(valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
This commit is contained in:
Mathias Gumz 2010-05-16 14:24:34 +02:00
parent b8f9ac6d69
commit 04739b2d1f

View file

@ -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) {