[PATCH] compositor-drm: Release the correct buffer in drm_output_release_fb
Kristian Høgsberg
hoegsberg at gmail.com
Tue Nov 19 13:25:20 PST 2013
On Thu, Nov 14, 2013 at 08:52:35PM -0600, Jason Ekstrand wrote:
> ---
> My knowledge of the DRM backend is rather small, so I don't know if this is
> really the right fix. I hit this when the the mode fails to set. See also
> compositor-drm.c:606
Right, that's better.
Kristian
> src/compositor-drm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index d4fc871..fc28a7b 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -412,7 +412,7 @@ drm_output_release_fb(struct drm_output *output, struct drm_fb *fb)
> gbm_bo_destroy(fb->bo);
> else
> gbm_surface_release_buffer(output->surface,
> - output->current->bo);
> + fb->bo);
> }
> }
>
> --
> 1.8.3.1
>
> _______________________________________________
> 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