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

Kristian Høgsberg hoegsberg at gmail.com
Fri Jun 14 12:04:16 PDT 2013


On Thu, Jun 13, 2013 at 10:03:33AM +0200, Samuel Iglesias Gonsalvez wrote:
> Free plane resources using drmModeFreePlaneResources()
> 
> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>

Heh, yup that looks like the right way to do it, thanks.

Kristian

> ---
>  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
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list