all repos — fluxbox @ 769130f51a8f670ba46dac50d7602f6b936c9dc1

custom fork of the fluxbox windowmanager

bugfix: do not use invalid iterators while looping thru a container which gets destroyed
Mathias Gumz akira at fluxbox dot org
commit

769130f51a8f670ba46dac50d7602f6b936c9dc1

parent

fbcdd34b223174a28ff712b7d03e56339fa2fe07

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M src/FbTk/Signal.hhsrc/FbTk/Signal.hh

@@ -265,9 +265,8 @@

void leaveAll() { // disconnect all connections - for ( Iterator conIt = m_connections.begin(); - conIt != m_connections.end(); ++conIt) { - leave(conIt, true); + for ( ; !m_connections.empty(); ) { + leave(m_connections.begin(), true); } }