From d2e198a27cc17f59f64f13076c8a44e9287e19de Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2012 05:56:13 +0000 Subject: Fix glib variant reference warnings. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4373 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.1