<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 6, 2016 at 10:08 AM, Thomas H.P. Andersen <span dir="ltr"><<a href="mailto:phomes@gmail.com" target="_blank">phomes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Mar 5, 2016 at 1:30 PM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Thomas,<br>
<br>
On 5 March 2016 at 12:07, Thomas Hindoe Paaboel Andersen<br>
<span><<a href="mailto:phomes@gmail.com" target="_blank">phomes@gmail.com</a>> wrote:<br>
> ---<br>
> src/gallium/state_trackers/va/image.c | 4 +++-<br>
> 1 file changed, 3 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/src/gallium/state_trackers/va/image.c b/src/gallium/state_trackers/va/image.c<br>
> index 2c42a98..92d014c 100644<br>
> --- a/src/gallium/state_trackers/va/image.c<br>
> +++ b/src/gallium/state_trackers/va/image.c<br>
> @@ -280,6 +280,7 @@ vlVaDestroyImage(VADriverContextP ctx, VAImageID image)<br>
> {<br>
> vlVaDriver *drv;<br>
> VAImage *vaimage;<br>
> + VAStatus status;<br>
><br>
> if (!ctx)<br>
> return VA_STATUS_ERROR_INVALID_CONTEXT;<br>
> @@ -294,8 +295,9 @@ vlVaDestroyImage(VADriverContextP ctx, VAImageID image)<br>
><br>
> handle_table_remove(VL_VA_DRIVER(ctx)->htab, image);<br>
> pipe_mutex_unlock(drv->mutex);<br>
> + status = vlVaDestroyBuffer(ctx, vaimage->buf);<br>
> FREE(vaimage);<br>
> - return vlVaDestroyBuffer(ctx, vaimage->buf);<br>
> + return status;<br>
<br>
</span>Nicely spotted !<br>
Out of curiosity: did you notice this during code inspection or did it<br>
pop up during testing ?<br></blockquote><div><br></div></div></div><div>Thanks for the review! I only saw it by inspection. I am just poking around a bit to get to know the code.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
For the patch<br>
<br>
Cc: "11.1 11.2" <<a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.org</a>><br>
Reviewed-by: Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>><br>
<br>
I'll push this in a couple of days unless someone beats me to it.<br></blockquote></span></div></div></div></blockquote><div><br></div><div>Hi Emil,<br><br></div><div>Friendly ping :)<br></div></div></div></div>