mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
committed by
Brad Miller (WPI)
parent
d69803804f
commit
13496c75b4
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user