Skip to content

Commit

Permalink
sbf: add missing delete for _rtcm_parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Aug 18, 2021
1 parent 8ff0240 commit 8af5336
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/ashtech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ GPSDriverAshtech::GPSDriverAshtech(GPSCallbackPtr callback, void *callback_user,

GPSDriverAshtech::~GPSDriverAshtech()
{
if (_rtcm_parsing) {
delete (_rtcm_parsing);
}
delete _rtcm_parsing;
}

/*
Expand Down
4 changes: 1 addition & 3 deletions src/femtomes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ GPSDriverFemto::GPSDriverFemto(GPSCallbackPtr callback, void *callback_user,

GPSDriverFemto::~GPSDriverFemto()
{
if (_rtcm_parsing) {
delete (_rtcm_parsing);
}
delete _rtcm_parsing;
}

int GPSDriverFemto::handleMessage(int len)
Expand Down
1 change: 1 addition & 0 deletions src/sbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ GPSDriverSBF::GPSDriverSBF(GPSCallbackPtr callback, void *callback_user,

GPSDriverSBF::~GPSDriverSBF()
{
delete _rtcm_parsing;
}

int
Expand Down

0 comments on commit 8af5336

Please sign in to comment.