Fixes a race condition crash that can occur in rare instances where elevation isn't present before being accessed.
Clean up GDAL calls that weren't explicitly freed leading to potentially memory leaks.
Reason
General stability and cleanup.
Method / Design
Elevation reset was manually checked by inducing the crash by suppressing elevation updates. The patch resolved both the induced crash as well as repeated testing in production.
GDAL memory leaks were located via stack tracing and running Valigrind Memcheck on the active code base. No other major leaks were detected via the tool at this time.
Description
Fixes a race condition crash that can occur in rare instances where elevation isn't present before being accessed. Clean up GDAL calls that weren't explicitly freed leading to potentially memory leaks.
Reason
General stability and cleanup.
Method / Design
Valigrind Memcheck
on the active code base. No other major leaks were detected via the tool at this time.Testing
Compiled and run on:
Other Notes