From: Chris Michael Date: Thu, 2 Jan 2014 11:39:40 +0000 (+0000) Subject: Properly free drm plane during creation of sprites X-Git-Tag: upstream/0.1.8~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b37687d3a63205d613f5c37fa40ead32f923f2a;p=profile%2Fivi%2Fweston-ivi-shell.git Properly free drm plane during creation of sprites If we fail to allocate space for a new drm_sprite, then we should properly call drmModeFreePlane (not free) to release the drm plane. Signed-off-by: Chris Michael --- diff --git a/src/compositor-drm.c b/src/compositor-drm.c index d637e75..75644e1 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -2107,7 +2107,7 @@ create_sprites(struct drm_compositor *ec) if (!sprite) { weston_log("%s: out of memory\n", __func__); - free(plane); + drmModeFreePlane(plane); continue; }