compositor-drm: free plane resources using drm function.
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 13 Jun 2013 08:03:33 +0000 (10:03 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 14 Jun 2013 19:29:02 +0000 (15:29 -0400)
Free plane resources using drmModeFreePlaneResources()

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
src/compositor-drm.c

index 76d0810..8787723 100644 (file)
@@ -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