cache: fix regression
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 17 Jun 2015 10:23:14 +0000 (12:23 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 22 Jun 2015 17:21:47 +0000 (19:21 +0200)
Fix a regression in cache_new introduced in commit
b4f147e242ea396ef92082d29866e5ab7d041b4e

libfreerdp/cache/cache.c

index 8d2a6f1..0e42f6b 100644 (file)
@@ -40,7 +40,7 @@ rdpCache* cache_new(rdpSettings* settings)
        if (!cache->glyph)
                goto error_glyph;
        cache->brush = brush_cache_new(settings);
-       if (cache->brush)
+       if (!cache->brush)
                goto error_brush;
        cache->pointer = pointer_cache_new(settings);
        if (!cache->pointer)