[PATCH] compositor-drm: free plane resources using drm function.

Samuel Iglesias Gonsalvez siglesias at igalia.com
Thu Jun 13 01:03:33 PDT 2013


Free plane resources using drmModeFreePlaneResources()

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
---
 src/compositor-drm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 76d0810..8787723 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -2005,8 +2005,7 @@ create_sprites(struct drm_compositor *ec)
 		wl_list_insert(&ec->sprite_list, &sprite->link);
 	}
 
-	free(plane_res->planes);
-	free(plane_res);
+	drmModeFreePlaneResources(plane_res);
 }
 
 static void
-- 
1.7.10.4



More information about the wayland-devel mailing list