]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.cc
alloc colors only when needed, and free them properly on destruction
[chaz/openbox] / otk / widget.cc
index eccbb5212392079238fb5894610ec5fa4a8a6d2a..690224d897d7c13124cda435d717503ff1724fe0 100644 (file)
@@ -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;
This page took 0.022241 seconds and 4 git commands to generate.