mirror of
https://github.com/servo/servo.git
synced 2025-07-18 21:03:45 +01:00
Shut down servo when the ML app quits
This commit is contained in:
parent
95bfaa0a77
commit
57085eea6a
2 changed files with 22 additions and 5 deletions
|
@ -58,8 +58,6 @@ Servo2D::Servo2D() {
|
|||
// Destroy a Servo 2D instance
|
||||
Servo2D::~Servo2D() {
|
||||
ML_LOG(Debug, "Servo2D Destructor.");
|
||||
discard_servo(servo_);
|
||||
servo_ = nullptr;
|
||||
}
|
||||
|
||||
// The prism dimensions
|
||||
|
@ -167,6 +165,8 @@ int Servo2D::init() {
|
|||
|
||||
int Servo2D::deInit() {
|
||||
ML_LOG(Debug, "Servo2D Deinitializing.");
|
||||
discard_servo(servo_);
|
||||
servo_ = nullptr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue