X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FGCCache.cc;h=35670a85046583142e93ae75c2508ef77e7e5bc6;hb=20bc088a998a362977233086577d74d00eea8765;hp=57310a44168b46d9e570de7c7b573baede81b521;hpb=1775e867c408bbea2b7f197c0c40b26e586e9ef1;p=chaz%2Fopenbox diff --git a/src/GCCache.cc b/src/GCCache.cc index 57310a44..35670a85 100644 --- a/src/GCCache.cc +++ b/src/GCCache.cc @@ -35,6 +35,12 @@ extern "C" { #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) {