mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
Release NSGLView, fixes heap-use-after-free
This commit is contained in:
parent
2c01adbeb0
commit
4866baacf5
4 changed files with 21 additions and 1 deletions
|
|
@ -562,6 +562,16 @@ GtkCanvas::GtkCanvas ()
|
|||
Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
|
||||
}
|
||||
|
||||
GtkCanvas::~GtkCanvas ()
|
||||
{
|
||||
_in_dtor = true;
|
||||
#ifdef __APPLE__
|
||||
if (_nsglview) {
|
||||
Gtkmm2ext::nsglview_destroy (_nsglview);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
GtkCanvas::set_single_exposure (bool yn)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue