Commit 6aa4cfa2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: memory leak

parent a30ec4a2
...@@ -50,6 +50,7 @@ int CheckError (vout_display_t *vd, xcb_connection_t *conn, ...@@ -50,6 +50,7 @@ int CheckError (vout_display_t *vd, xcb_connection_t *conn,
if (err) if (err)
{ {
msg_Err (vd, "%s: X11 error %d", str, err->error_code); msg_Err (vd, "%s: X11 error %d", str, err->error_code);
free (err);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
return VLC_SUCCESS; return VLC_SUCCESS;
......
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