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
2be698fd
Commit
2be698fd
authored
Feb 05, 2020
by
Patrick José Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AirspaceManager: Remove pointer check before delete
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
1d5c87d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
AirspaceManager.cc
src/AirspaceManagement/AirspaceManager.cc
+10
-15
No files found.
src/AirspaceManagement/AirspaceManager.cc
View file @
2be698fd
...
...
@@ -48,21 +48,16 @@ AirspaceManager::AirspaceManager(QGCApplication* app, QGCToolbox* toolbox)
//-----------------------------------------------------------------------------
AirspaceManager
::~
AirspaceManager
()
{
if
(
_advisories
)
{
delete
_advisories
;
}
if
(
_weatherProvider
)
{
delete
_weatherProvider
;
}
if
(
_ruleSetsProvider
)
{
delete
_ruleSetsProvider
;
}
if
(
_airspaces
)
{
delete
_airspaces
;
}
if
(
_flightPlan
)
{
delete
_flightPlan
;
}
delete
_advisories
;
_advisories
=
nullptr
;
delete
_weatherProvider
;
_weatherProvider
=
nullptr
;
delete
_ruleSetsProvider
;
_ruleSetsProvider
=
nullptr
;
delete
_airspaces
;
_airspaces
=
nullptr
;
delete
_flightPlan
;
_flightPlan
=
nullptr
;
}
//-----------------------------------------------------------------------------
...
...
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