X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FGCCache.cc;h=57310a44168b46d9e570de7c7b573baede81b521;hb=b29977196b527bb50b045cad249e9c149fa0ef75;hp=941d67ef0d0c80bd07005206b59000b904649d5c;hpb=8794d357e67abddf9fda9db77b235e294d0ec590;p=chaz%2Fopenbox diff --git a/src/GCCache.cc b/src/GCCache.cc index 941d67ef..57310a44 100644 --- a/src/GCCache.cc +++ b/src/GCCache.cc @@ -90,8 +90,6 @@ BGCCache::~BGCCache(void) { std::for_each(cache, cache + cache_total_size, PointerAssassin()); delete [] cache; delete [] contexts; - cache = 0; - contexts = 0; } @@ -116,6 +114,7 @@ BGCCacheContext *BGCCache::nextContext(unsigned int scr) { fprintf(stderr, "BGCCache: context fault!\n"); abort(); + return (BGCCacheContext*) 0; // not reached }