mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
some fixes for sigc::connection mgmt and lifetime mgmt for EditingContext
This commit is contained in:
parent
c509de6814
commit
179fd25715
3 changed files with 3 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
#include "editing.h"
|
#include "editing.h"
|
||||||
#include "editing_context.h"
|
#include "editing_context.h"
|
||||||
|
|
||||||
class CueEditor : public EditingContext, public PBD::HistoryOwner, public sigc::trackable
|
class CueEditor : public EditingContext, public PBD::HistoryOwner
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CueEditor (std::string const & name);
|
CueEditor (std::string const & name);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ class Selection;
|
||||||
class SelectionMemento;
|
class SelectionMemento;
|
||||||
class SelectableOwner;
|
class SelectableOwner;
|
||||||
|
|
||||||
class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider
|
class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider, public virtual sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EditingContext (std::string const &);
|
EditingContext (std::string const &);
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ Pianoroll::~Pianoroll ()
|
||||||
drop_grid (); // unparent gridlines before deleting _canvas_viewport
|
drop_grid (); // unparent gridlines before deleting _canvas_viewport
|
||||||
|
|
||||||
delete view;
|
delete view;
|
||||||
|
delete bg;
|
||||||
delete _canvas_viewport;
|
delete _canvas_viewport;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue