summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index eccbb521..690224d8 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -508,6 +508,7 @@ void Widget::render()
// delete the old surface *after* its pixmap isn't in use anymore
if (_surface) delete _surface;
+ s->freePixelData(); // done rendering with this surface
_surface = s;
_dirty = false;