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

Memory leak

parent a90da50b
...@@ -275,16 +275,16 @@ static int Open (vlc_object_t *obj) ...@@ -275,16 +275,16 @@ static int Open (vlc_object_t *obj)
{ {
xcb_shm_query_version_cookie_t ck; xcb_shm_query_version_cookie_t ck;
xcb_shm_query_version_reply_t *r; xcb_shm_query_version_reply_t *r;
xcb_generic_error_t *err;
ck = xcb_shm_query_version (p_sys->conn); ck = xcb_shm_query_version (p_sys->conn);
r = xcb_shm_query_version_reply (p_sys->conn, ck, &err); r = xcb_shm_query_version_reply (p_sys->conn, ck, NULL);
if (!r) if (!r)
{ {
msg_Err (vout, "shared memory (MIT-SHM) not available"); msg_Err (vout, "shared memory (MIT-SHM) not available");
msg_Warn (vout, "display will be slow"); msg_Warn (vout, "display will be slow");
p_sys->shm = false; p_sys->shm = false;
} }
free (r);
} }
/* Get window */ /* Get window */
...@@ -468,8 +468,7 @@ static int Init (vout_thread_t *vout) ...@@ -468,8 +468,7 @@ static int Init (vout_thread_t *vout)
ck = xcb_get_geometry (p_sys->conn, p_sys->parent); ck = xcb_get_geometry (p_sys->conn, p_sys->parent);
xcb_get_geometry_reply_t *geo; xcb_get_geometry_reply_t *geo;
xcb_generic_error_t *err; geo = xcb_get_geometry_reply (p_sys->conn, ck, NULL);
geo = xcb_get_geometry_reply (p_sys->conn, ck, &err);
width = geo->width; width = geo->width;
height = geo->height; height = geo->height;
free (geo); free (geo);
......
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