Commit 15dfd57a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: memory leak

parent 4815d355
......@@ -115,7 +115,10 @@ static int Open (vlc_object_t *obj)
/* Connect to X */
p_sys->conn = Connect (obj);
if (p_sys->conn == NULL)
{
free (p_sys);
return VLC_EGENERIC;
}
/* Get window */
const xcb_screen_t *scr;
......@@ -123,6 +126,7 @@ static int Open (vlc_object_t *obj)
if (p_sys->embed == NULL)
{
xcb_disconnect (p_sys->conn);
free (p_sys);
return VLC_EGENERIC;
}
......
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