Fixed memory leak.
This commit is contained in:
parent
9339411c9b
commit
cef228d0f4
3
libfreerdp/cache/bitmap.c
vendored
3
libfreerdp/cache/bitmap.c
vendored
@ -297,7 +297,10 @@ rdpBitmapCache* bitmap_cache_new(rdpSettings* settings)
|
||||
bitmapCache->cells = (BITMAP_V2_CELL*) calloc(bitmapCache->maxCells, sizeof(BITMAP_V2_CELL));
|
||||
|
||||
if (!bitmapCache->cells)
|
||||
{
|
||||
free(bitmapCache);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i = 0; i < (int) bitmapCache->maxCells; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user