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