summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-11 22:38:29 +0000
committerDana Jansens <danakj@orodu.net>2003-02-11 22:38:29 +0000
commit555facb9c737be20cd923abc15875af0281a8927 (patch)
treefed6201d3d0993cf400a0d329b3e8d92d9dd492e /src
parentaceea3c0814778317be7a903f63b8363d2b1b0ef (diff)
free the surfaces' pixeldata after rendering it
Diffstat (limited to 'src')
-rw-r--r--src/frame.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frame.cc b/src/frame.cc
index 5f63d17c..a4188b6e 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -227,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;
}
@@ -382,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;
}