diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-24 18:17:35 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-24 18:17:35 -0500 |
commit | c936addd06129c46196d487ad37b149b2fbc3a9d (patch) | |
tree | b117424f400ed0f6994bdcfaf57e393f6d94b7ef | |
parent | 44724ab7eca2a0a7e34d5373191c887f17cdef32 (diff) | |
download | ayatana-indicator-sound-c936addd06129c46196d487ad37b149b2fbc3a9d.tar.gz ayatana-indicator-sound-c936addd06129c46196d487ad37b149b2fbc3a9d.tar.bz2 ayatana-indicator-sound-c936addd06129c46196d487ad37b149b2fbc3a9d.zip |
in Service's volume_changed(), explicitly instantiate the GVariant to avoid leaking it
-rw-r--r-- | src/service.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); } |