all repos — fluxbox @ 75b9a4ed72f89fd74117a1e44eae98702849af57

custom fork of the fluxbox windowmanager

bugfix: free the shape-corners on the last used 'Shape'

the global 's_corners' vector was still used on an application shutdown
(including ctrl-c SIGINT). depending on when 's_corners' was created on
the stack this could lead to an exception ('pure virtual called') while
trying to free the 'FbPixmaps' without having a valid
'FbTk::Application::instance()' left.
Mathias Gumz akira at fluxbox dot org
commit

75b9a4ed72f89fd74117a1e44eae98702849af57

parent

36893ac7f98f8e84e9e97e641a0d598f28ea19b5

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

jump to
M src/FbTk/Shape.ccsrc/FbTk/Shape.cc

@@ -134,7 +134,7 @@ }

void cleanCorners() { - if (nr_shapes == 0) { + if (nr_shapes == 1) { s_corners.clear(); } else { nr_shapes--; // refcounting