Commit 059ec206 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB/XVideo: fix memory leak

This was fixed VLC 1.2 in 8fdf5c8af8693274c03f1453b6be14ce0d5d1237.
parent f446b781
......@@ -398,6 +398,7 @@ static int Open (vlc_object_t *obj)
continue; /* OMAP framebuffer sucks at YUV 4:2:0 */
}
free (p_sys->att);
xfmt = FindFormat (vd, chroma, &fmt, a->base_id, r, &p_sys->att);
if (xfmt != NULL)
{
......@@ -414,6 +415,8 @@ static int Open (vlc_object_t *obj)
}
break;
}
else
p_sys->att = NULL;
}
free (r);
if (xfmt == NULL) /* No acceptable image formats */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment