summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-12 05:56:13 +0000
committerDavid Robillard <d@drobilla.net>2012-05-12 05:56:13 +0000
commitd2e198a27cc17f59f64f13076c8a44e9287e19de (patch)
tree7369bfaf595eb4a2e93d2a23c4505a5f8f7aaaa5
parent80ef97d123f9d5fa086844398f55c97d5613b8a3 (diff)
downloadganv-d2e198a27cc17f59f64f13076c8a44e9287e19de.tar.gz
ganv-d2e198a27cc17f59f64f13076c8a44e9287e19de.tar.bz2
ganv-d2e198a27cc17f59f64f13076c8a44e9287e19de.zip
Fix glib variant reference warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4373 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port.c b/src/port.c
index c33e925..b390f29 100644
--- a/src/port.c
+++ b/src/port.c
@@ -469,7 +469,7 @@ ganv_port_set_control_value(GanvPort* port,
ganv_box_set_width(impl->control->rect, MAX(0.0, w - 1.0));
if (impl->control->value != value) {
- GVariant* gvar = g_variant_new_double(value);
+ GVariant* gvar = g_variant_ref_sink(g_variant_new_double(value));
g_signal_emit(port, port_signals[PORT_VALUE_CHANGED], 0, gvar, NULL);
g_variant_unref(gvar);
}