Fix shutdown

This commit is contained in:
Paul Rouget 2019-07-26 18:25:04 +02:00
parent 449881f566
commit c6a2f6eb05
3 changed files with 7 additions and 4 deletions

View file

@ -59,7 +59,7 @@ Servo::Servo(GLsizei width, GLsizei height, ServoDelegate &aDelegate)
init_with_egl(o, &wakeup, c);
}
Servo::~Servo() { capi::deinit(); }
Servo::~Servo() { sServo = nullptr; }
std::wstring char2w(const char *c_str) {
auto str = std::string(c_str);
@ -71,4 +71,4 @@ std::wstring char2w(const char *c_str) {
return str2;
}
} // namespace mozilla
} // namespace servo