Skip to content

Commit

Permalink
fixed memory leak when Replay Logs are disabled. Still leaks when the…
Browse files Browse the repository at this point in the history
…y are enabled though.. hard to fix due to the highly async code
  • Loading branch information
b3nn0 committed Sep 2, 2021
1 parent 4b0f27a commit 64d947e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/datalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func dataLog() {
*/

func setDataLogTimeWithGPS(sit SituationData) {
if isGPSClockValid() {
if dataLogStarted && isGPSClockValid() {
var ts StratuxTimestamp
// Piggyback a GPS time update from this update.
ts.id = 0
Expand Down

0 comments on commit 64d947e

Please sign in to comment.