openbsd-ports/x11/fluxbox/patches/patch-src_Screen_cc

15 lines
459 B
Plaintext

$OpenBSD: patch-src_Screen_cc,v 1.1 2002/03/11 14:02:12 naddy Exp $
--- src/Screen.cc.orig Sat Mar 9 21:22:15 2002
+++ src/Screen.cc Sat Mar 9 21:22:47 2002
@@ -877,8 +877,9 @@ void BScreen::removeNetizen(Window w) {
Netizens::iterator it_end = netizenList.end();
for (; it != it_end; ++it) {
if ((*it)->getWindowID() == w) {
- Netizen *n = *netizenList.erase(it);
+ Netizen *n = *it;
delete n;
+ netizenList.erase(it);
break;
}
}