From 75b9a4ed72f89fd74117a1e44eae98702849af57 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Tue, 14 Sep 2010 16:54:08 +0200 Subject: 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. --- src/FbTk/Shape.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/Shape.cc b/src/FbTk/Shape.cc index c0489ec..3d41886 100644 --- a/src/FbTk/Shape.cc +++ b/src/FbTk/Shape.cc @@ -134,7 +134,7 @@ void initCorners(FbWindow& win) { void cleanCorners() { - if (nr_shapes == 0) { + if (nr_shapes == 1) { s_corners.clear(); } else { nr_shapes--; // refcounting -- cgit v0.11.2