X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fframe.cc;h=a4188b6ee44b93111beb9f0d3e84f2c9cd52f798;hb=555facb9c737be20cd923abc15875af0281a8927;hp=17ebdb65f1dd54ff5056beb59f21a488e6ac770e;hpb=74cfb1b4c115cdb4e05aa823b09d2b5ea9d0d690;p=chaz%2Fopenbox diff --git a/src/frame.cc b/src/frame.cc index 17ebdb65..a4188b6e 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" extern "C" { #ifdef SHAPE @@ -229,6 +227,7 @@ static void render(int screen, const otk::Size &size, Window win, XSetWindowBackgroundPixmap(**otk::display, win, s->pixmap()); XClearWindow(**otk::display, win); if (*surface) delete *surface; + s->freePixelData(); *surface = s; } @@ -384,6 +383,7 @@ void Frame::renderLabel() XSetWindowBackgroundPixmap(**otk::display, _label, s->pixmap()); XClearWindow(**otk::display, _label); if (_label_sur) delete _label_sur; + s->freePixelData(); _label_sur = s; }