aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-10-02 16:14:41 (GMT)
committerrathnor <rathnor>2003-10-02 16:14:41 (GMT)
commit158b515e21f0f0154041cd5985ec38fe37c0e875 (patch)
treec1aebd425cef8610820043ae1f380dd5fb1f02d1 /src/Screen.cc
parentbb1a7c92d8bb194e7e415f4348b7428f1b8ef436 (diff)
downloadfluxbox_pavel-158b515e21f0f0154041cd5985ec38fe37c0e875.zip
fluxbox_pavel-158b515e21f0f0154041cd5985ec38fe37c0e875.tar.bz2
address some memory issues shown up with valgrind
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index f2466e3..487f0c0 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.235 2003/09/29 12:53:58 rathnor Exp $ 25// $Id: Screen.cc,v 1.236 2003/10/02 16:14:41 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -731,7 +731,10 @@ void BScreen::removeWindow(FluxboxWindow *win) {
731 731
732void BScreen::removeClient(WinClient &client) { 732void BScreen::removeClient(WinClient &client) {
733 733
734 WinClient *cyc = *cycling_window; 734 WinClient *cyc = 0;
735 if (cycling_window != focused_list.end())
736 cyc = *cycling_window;
737
735 WinClient *focused = Fluxbox::instance()->getFocusedWindow(); 738 WinClient *focused = Fluxbox::instance()->getFocusedWindow();
736 focused_list.remove(&client); 739 focused_list.remove(&client);
737 if (cyc == &client) { 740 if (cyc == &client) {