diff options
author | David Robillard <d@drobilla.net> | 2012-01-11 03:49:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-11 03:49:32 +0000 |
commit | 5efc7ae9c304d7e01cc00291e0857ced7d3582ba (patch) | |
tree | 95952f5f1e49a3c6190291add106e96d90a11c86 /ganv | |
parent | b666782d06fc2cd9fe810b3fdbf13cc3949f6927 (diff) | |
download | ganv-5efc7ae9c304d7e01cc00291e0857ced7d3582ba.tar.gz ganv-5efc7ae9c304d7e01cc00291e0857ced7d3582ba.tar.bz2 ganv-5efc7ae9c304d7e01cc00291e0857ced7d3582ba.zip |
Fix crash on shutdown and item deletion.
Use Item add and remove virtual methods for adding/removing ports instead of special explicit functions.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3933 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Item.hpp | 5 | ||||
-rw-r--r-- | ganv/module.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/ganv/Item.hpp b/ganv/Item.hpp index 7dacf01..e4f2c52 100644 --- a/ganv/Item.hpp +++ b/ganv/Item.hpp @@ -46,7 +46,10 @@ public: } } - virtual ~Item() {} + virtual ~Item() { + gtk_object_destroy(GTK_OBJECT(_gobj)); + } + RW_PROPERTY(double, x) RW_PROPERTY(double, y) diff --git a/ganv/module.h b/ganv/module.h index 7520722..16c5258 100644 --- a/ganv/module.h +++ b/ganv/module.h @@ -61,10 +61,6 @@ GanvPort* ganv_module_get_port(GanvModule* module, guint index); -void -ganv_module_add_port(GanvModule* module, - GanvPort* port); - double ganv_module_get_empty_port_breadth(const GanvModule* module); |