From 446870d8692941300cfaa4e52400b6ff0c29e34e Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sat, 25 Aug 2012 19:37:50 -0500 Subject: [PATCH] TxPID: Set the timeOut to NULL after deleting it. I had a segfault from here. --- .../src/plugins/uavobjectwidgetutils/configtaskwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp b/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp index 7736ba00e..09d6e21a5 100644 --- a/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp +++ b/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp @@ -180,6 +180,7 @@ ConfigTaskWidget::~ConfigTaskWidget() if(timeOut) { delete timeOut; + timeOut = NULL; } }