Unverified Commit 53ad9dc6 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #7139 from mavlink/fixCrashOnExit

Check if qgcApp() actually exists before using it.
parents 8dca2cd4 0bcddf9a
...@@ -472,7 +472,7 @@ VideoReceiver::start() ...@@ -472,7 +472,7 @@ VideoReceiver::start()
void void
VideoReceiver::stop() VideoReceiver::stop()
{ {
if(qgcApp()->runningUnitTests()) { if(qgcApp() && qgcApp()->runningUnitTests()) {
return; return;
} }
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment