Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
1dcc9a20
Commit
1dcc9a20
authored
Jul 30, 2014
by
Bryant Mairs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix valgrind leak in opmapcontrol.
parent
4cab8e40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
core.cpp
libs/opmapcontrol/src/internals/core.cpp
+4
-0
core.h
libs/opmapcontrol/src/internals/core.h
+3
-0
pureprojection.h
libs/opmapcontrol/src/internals/pureprojection.h
+2
-1
No files found.
libs/opmapcontrol/src/internals/core.cpp
View file @
1dcc9a20
...
...
@@ -42,6 +42,7 @@ namespace internals {
minOfTiles
(
0
,
0
),
maxOfTiles
(
0
,
0
),
zoom
(
0
),
projection
(
NULL
),
isDragging
(
false
),
TooltipTextPadding
(
10
,
10
),
loaderLimit
(
5
),
...
...
@@ -61,6 +62,9 @@ namespace internals {
}
Core
::~
Core
()
{
if
(
projection
)
{
delete
projection
;
}
ProcessLoadTaskCallback
.
waitForDone
();
}
...
...
libs/opmapcontrol/src/internals/core.h
View file @
1dcc9a20
...
...
@@ -135,6 +135,9 @@ namespace internals {
}
void
SetProjection
(
PureProjection
*
value
)
{
if
(
projection
)
{
delete
projection
;
}
projection
=
value
;
tileRect
=
Rectangle
(
core
::
Point
(
0
,
0
),
value
->
TileSize
());
}
...
...
libs/opmapcontrol/src/internals/pureprojection.h
View file @
1dcc9a20
...
...
@@ -42,8 +42,9 @@ namespace internals
class
PureProjection
{
public:
virtual
~
PureProjection
()
{}
virtual
Size
TileSize
()
const
=
0
;
virtual
double
Axis
()
const
=
0
;
...
...
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