summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-11 03:49:32 +0000
committerDavid Robillard <d@drobilla.net>2012-01-11 03:49:32 +0000
commit5efc7ae9c304d7e01cc00291e0857ced7d3582ba (patch)
tree95952f5f1e49a3c6190291add106e96d90a11c86 /src/node.c
parentb666782d06fc2cd9fe810b3fdbf13cc3949f6927 (diff)
downloadganv-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 'src/node.c')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index e162e04..a59bde3 100644
--- a/src/node.c
+++ b/src/node.c
@@ -85,7 +85,7 @@ ganv_node_destroy(GtkObject* object)
GanvNode* node = GANV_NODE(object);
GanvNodeImpl* impl = node->impl;
if (impl->label) {
- gtk_object_destroy(GTK_OBJECT(impl->label));
+ g_object_unref(impl->label);
impl->label = NULL;
}