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
6577e48a
Commit
6577e48a
authored
Aug 02, 2012
by
Jessica
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memory leaks fixed in unit tests.
parent
8564aa00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+2
-3
UASUnitTest.cc
src/qgcunittest/UASUnitTest.cc
+1
-5
UAS.cc
src/uas/UAS.cc
+0
-7
No files found.
src/comm/QGCFlightGearLink.cc
View file @
6577e48a
...
...
@@ -53,9 +53,8 @@ QGCFlightGearLink::QGCFlightGearLink(UASInterface* mav, QString remoteHost, QHos
}
QGCFlightGearLink
::~
QGCFlightGearLink
()
{
//if it is connected, then process, terraSync and socket were allocated memory
//if they were not connected, then they were never allocated, so no need to free memory or
//to disconnect the simulation
{
//do not disconnect unless it is connected.
//disconnectSimulation will delete the memory that was allocated for proces, terraSync and socket
if
(
connectState
){
disconnectSimulation
();
}
...
...
src/qgcunittest/UASUnitTest.cc
View file @
6577e48a
...
...
@@ -195,6 +195,7 @@ void UASUnitTest::setAirframe_test()
uas
->
setAirframe
(
12
);
QVERIFY
(
uas
->
getAirframe
()
==
11
);
}
void
UASUnitTest
::
getWaypointList_test
()
{
QVector
<
Waypoint
*>
kk
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
...
...
@@ -286,11 +287,6 @@ void UASUnitTest::signalWayPoint_test()
delete
wp2
;
}
//TODO:startHil. to make sure connect and disconnect simulation in QGCFlightGear works properly
//TODO:stopHil
void
UASUnitTest
::
signalUASLink_test
()
{
...
...
src/uas/UAS.cc
View file @
6577e48a
...
...
@@ -121,16 +121,9 @@ UAS::~UAS()
{
writeSettings
();
delete
links
;
if
(
statusTimeout
->
isActive
())
{
statusTimeout
->
deleteLater
();
}
delete
statusTimeout
;
delete
simulation
;
mavlink
->
deleteLater
();
delete
paramManager
;
}
void
UAS
::
writeSettings
()
{
...
...
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