From 528c5841d5abdecc204965ab70d4ab17761dd007 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Sun, 7 Dec 2014 00:50:20 +0100 Subject: [PATCH] Fixed memory leak. --- libfreerdp/codec/planar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfreerdp/codec/planar.c b/libfreerdp/codec/planar.c index 30ae1c29f..836d81cc1 100644 --- a/libfreerdp/codec/planar.c +++ b/libfreerdp/codec/planar.c @@ -996,10 +996,10 @@ BYTE* freerdp_bitmap_planar_delta_encode_plane(BYTE* inPlane, int width, int hei int freerdp_bitmap_planar_delta_encode_planes(BYTE* inPlanes[4], int width, int height, BYTE* outPlanes[4]) { - freerdp_bitmap_planar_delta_encode_plane(inPlanes[0], width, height, outPlanes[0]); - freerdp_bitmap_planar_delta_encode_plane(inPlanes[1], width, height, outPlanes[1]); - freerdp_bitmap_planar_delta_encode_plane(inPlanes[2], width, height, outPlanes[2]); - freerdp_bitmap_planar_delta_encode_plane(inPlanes[3], width, height, outPlanes[3]); + outPlanes[0] = freerdp_bitmap_planar_delta_encode_plane(inPlanes[0], width, height, outPlanes[0]); + outPlanes[1] = freerdp_bitmap_planar_delta_encode_plane(inPlanes[1], width, height, outPlanes[1]); + outPlanes[2] = freerdp_bitmap_planar_delta_encode_plane(inPlanes[2], width, height, outPlanes[2]); + outPlanes[3] = freerdp_bitmap_planar_delta_encode_plane(inPlanes[3], width, height, outPlanes[3]); return 0; }