Commit 7c774cfc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory leak

parent 2ce04181
...@@ -130,8 +130,10 @@ static int Open (vlc_object_t *obj) ...@@ -130,8 +130,10 @@ static int Open (vlc_object_t *obj)
{ {
msg_Err (vout, "cannot connect to X server %s", msg_Err (vout, "cannot connect to X server %s",
display ? display : ""); display ? display : "");
free (display);
goto error; goto error;
} }
free (display);
/* Get the preferred screen */ /* Get the preferred screen */
xcb_screen_t *scr = xcb_aux_get_screen (p_sys->conn, snum); xcb_screen_t *scr = xcb_aux_get_screen (p_sys->conn, snum);
......
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