cache: fix regression

Fix a regression in cache_new introduced in commit
b4f147e242ea396ef92082d29866e5ab7d041b4e
This commit is contained in:
Bernhard Miklautz 2015-06-17 12:23:14 +02:00
parent 1f414ec9e7
commit 5de0e02c61

View 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)