From bd34ee943e1041cfff7d4bd896bb4bb2c09a546a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Feb 2008 19:51:43 +0000 Subject: 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 --- src/Widget.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Widget.hpp') 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 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 -- cgit v1.2.1