diff options
author | David Robillard <d@drobilla.net> | 2008-02-23 19:51:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-23 19:51:43 +0000 |
commit | bd34ee943e1041cfff7d4bd896bb4bb2c09a546a (patch) | |
tree | 8060a4f04a13cc493be76730df6abaf007a4b04b /src/Widget.hpp | |
parent | 2fd851eed1fedb7e27ac9134c4b9e7d9e2206d11 (diff) | |
download | patchage-bd34ee943e1041cfff7d4bd896bb4bb2c09a546a.tar.gz patchage-bd34ee943e1041cfff7d4bd896bb4bb2c09a546a.tar.bz2 patchage-bd34ee943e1041cfff7d4bd896bb4bb2c09a546a.zip |
Plug several memory leaks.
Reduce Patchage memory consumption (shrink (stupid) alsa thread stack size).
git-svn-id: http://svn.drobilla.net/lad/patchage@1161 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r-- | src/Widget.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp index ea8a218..4fea89a 100644 --- a/src/Widget.hpp +++ b/src/Widget.hpp @@ -27,7 +27,9 @@ public: Widget(Glib::RefPtr<Gnome::Glade::Xml> xml, const std::string& name) { xml->get_widget(name.c_str(), _me); } - + + void destroy() { delete _me; } + W* get() { return _me; } const W* get() const { return _me; } W* operator->() { return _me; } @@ -38,5 +40,6 @@ public: private: W* _me; }; + #endif // WIDGET_HPP |