Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
73b7ccdf
Commit
73b7ccdf
authored
Jun 09, 2011
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: fix memory leak regarding previous commit
parent
d7615a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/gui/skins2/x11/x11_factory.cpp
modules/gui/skins2/x11/x11_factory.cpp
+9
-6
No files found.
modules/gui/skins2/x11/x11_factory.cpp
View file @
73b7ccdf
...
...
@@ -211,16 +211,16 @@ void X11Factory::getMonitorInfo( const GenericWindow &rWindow,
XineramaScreenInfo
*
info
=
XineramaQueryScreens
(
pDisplay
,
&
num
);
if
(
info
)
{
Region
reg1
=
XCreateRegion
();
XRectangle
rect1
=
{
x
,
y
,
w
,
h
};
XUnionRectWithRegion
(
&
rect1
,
reg1
,
reg1
);
unsigned
int
surface
=
0
;
for
(
int
i
=
0
;
i
<
num
;
i
++
)
{
Region
reg1
=
XCreateRegion
();
XRectangle
rect1
=
{
info
[
i
].
x_org
,
info
[
i
].
y_org
,
info
[
i
].
width
,
info
[
i
].
height
};
XUnionRectWithRegion
(
&
rect1
,
reg1
,
reg1
);
Region
reg2
=
XCreateRegion
();
XRectangle
rect2
=
{
x
,
y
,
w
,
h
};
XRectangle
rect2
=
{
info
[
i
].
x_org
,
info
[
i
].
y_org
,
info
[
i
].
width
,
info
[
i
].
height
};
XUnionRectWithRegion
(
&
rect2
,
reg2
,
reg2
);
Region
reg
=
XCreateRegion
();
...
...
@@ -236,7 +236,10 @@ void X11Factory::getMonitorInfo( const GenericWindow &rWindow,
*
p_width
=
info
[
i
].
width
;
*
p_height
=
info
[
i
].
height
;
}
XDestroyRegion
(
reg
);
XDestroyRegion
(
reg2
);
}
XDestroyRegion
(
reg1
);
XFree
(
info
);
}
}
...
...
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