Fixed double free of DriverStation.

DriverStation was being added to the singletons and also as a const
member variable.  This made it so that on program exit, it was
getting double freed.

Change-Id: I87f8260615dc31d57ce7c7204c1dfde22973ad51
This commit is contained in:
Austin Schuh
2015-12-03 00:44:17 -08:00
committed by Brad Miller (WPI)
parent d69803804f
commit 13496c75b4

View File

@@ -88,8 +88,8 @@ void DriverStation::Run() {
* @return Pointer to the DS instance
*/
DriverStation &DriverStation::GetInstance() {
static DriverStation instance;
return instance;
static DriverStation *instance = new DriverStation();
return *instance;
}
/**