From 555facb9c737be20cd923abc15875af0281a8927 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 11 Feb 2003 22:38:29 +0000 Subject: free the surfaces' pixeldata after rendering it --- src/frame.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3