Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
6e31246b
Commit
6e31246b
authored
Apr 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memory leak
parent
a90da50b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+3
-4
No files found.
modules/video_output/xcb/x11.c
View file @
6e31246b
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment