diff options
author | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
commit | 932eebe0ddbc611ccf72cbebebbde656ae2d08ec (patch) | |
tree | d83c10c1393094cfcef80d29f12634e6a5f04430 /src/Screen.cc | |
parent | 23cdfaaff3dcae62d50bddb087ecac94bca5be4c (diff) | |
download | fluxbox-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.zip fluxbox-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.tar.bz2 |
couple of memory fixes from valgrind
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 4625b80..d19d16f 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -345,8 +345,11 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
345 | XSetErrorHandler((XErrorHandler) old); | 345 | XSetErrorHandler((XErrorHandler) old); |
346 | 346 | ||
347 | managed = running; | 347 | managed = running; |
348 | if (! managed) | 348 | if (! managed) { |
349 | delete m_placement_strategy; m_placement_strategy = 0; | ||
350 | delete m_focus_control; m_focus_control = 0; | ||
349 | return; | 351 | return; |
352 | } | ||
350 | 353 | ||
351 | // TODO fluxgen: check if this is the right place | 354 | // TODO fluxgen: check if this is the right place |
352 | m_head_areas = new HeadArea[numHeads() ? numHeads() : 1]; | 355 | m_head_areas = new HeadArea[numHeads() ? numHeads() : 1]; |