Jason Ekstrand <[email protected]> writes:

> +    old_shadow = drmmode->shadow_bo;
>  
>      if (!drmmode_create_bo(drmmode, &drmmode->front_bo,
>                             width, height, scrn->bitsPerPixel))
> @@ -1218,13 +1219,9 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, 
> int height)
>      }
>  
>      if (drmmode->shadow_enable) {
> -        uint32_t size = scrn->displayWidth * scrn->virtualY *
> -            ((scrn->bitsPerPixel + 7) >> 3);
> -        new_pixels = calloc(1, size);
> -        if (new_pixels == NULL)
> +        if (!drmmode_create_bo(drmmode, &drmmode->shadow_bo,
> +                               width, height, scrn->bitsPerPixel))
>              goto fail;
> -        free(drmmode->shadow_fb);
> -        drmmode->shadow_fb = new_pixels;
>      }

I don't see the old shadow_bo getting freed anywhere; did I miss
something?

The rest of this patch looks good and is

Reviewed-by: Keith Packard <[email protected]>

-- 
-keith

Attachment: signature.asc
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to