diff options
author | David Robillard <d@drobilla.net> | 2006-10-03 22:24:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-03 22:24:22 +0000 |
commit | 9c7f679baa39d7772f9b66a65b48d37ba540fbba (patch) | |
tree | e5c543bafdd65b43cd96d2320b8abe7e37d9ee6d /src/Patchage.cpp | |
parent | 960edd8f434bd6bedb6f635bc3cedeae9dbbb1e0 (diff) | |
download | patchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.tar.gz patchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.tar.bz2 patchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.zip |
shared_ptr bugfixes.
Updated Ingen to work with new FlowCanvas.
Updated Patchage to work with new(er) FlowCanvas.
git-svn-id: http://svn.drobilla.net/lad/patchage@152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 0a37e58..e87d431 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -37,7 +37,6 @@ Patchage::Patchage(int argc, char** argv) #ifdef HAVE_ALSA m_alsa_driver(NULL), #endif - m_canvas(NULL), m_jack_driver(NULL), m_state_manager(NULL), m_refresh(false) @@ -46,7 +45,7 @@ Patchage::Patchage(int argc, char** argv) m_settings_filename += "/.patchagerc"; m_state_manager = new StateManager(); - m_canvas = new PatchageFlowCanvas(this, 1600*2, 1200*2); + m_canvas = boost::shared_ptr<PatchageFlowCanvas>(new PatchageFlowCanvas(this, 1600*2, 1200*2)); m_jack_driver = new JackDriver(this); #ifdef HAVE_ALSA m_alsa_driver = new AlsaDriver(this); @@ -159,7 +158,6 @@ Patchage::~Patchage() delete m_lash_driver; #endif delete m_state_manager; - delete m_canvas; } |