From c936addd06129c46196d487ad37b149b2fbc3a9d Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 24 Oct 2013 18:17:35 -0500 Subject: in Service's volume_changed(), explicitly instantiate the GVariant to avoid leaking it --- src/service.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/service.vala b/src/service.vala index 0b1ec77..c9c25c6 100644 --- a/src/service.vala +++ b/src/service.vala @@ -195,7 +195,7 @@ public class IndicatorSound.Service { void volume_changed (double volume) { var volume_action = this.actions.lookup_action ("volume") as SimpleAction; - volume_action.set_state (volume); + volume_action.set_state (new Variant.double (volume)); this.update_root_icon (); } -- cgit v1.2.3