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.
This commit is contained in:
Mathias Gumz 2010-09-14 16:54:08 +02:00
parent 36893ac7f9
commit 75b9a4ed72

View file

@ -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