#include "Util.hh"
+BGCCacheContext::~BGCCacheContext(void) {
+ if (gc)
+ XFreeGC(display->getXDisplay(), gc);
+}
+
+
void BGCCacheContext::set(const BColor &_color,
const XFontStruct * const _font,
const int _function, const int _subwindow) {
std::for_each(cache, cache + cache_total_size, PointerAssassin());
delete [] cache;
delete [] contexts;
- cache = 0;
- contexts = 0;
}
fprintf(stderr, "BGCCache: context fault!\n");
abort();
+ return (BGCCacheContext*) 0; // not reached
}