diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-31 14:53:56 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-31 14:53:56 -0600 |
commit | f94de8d944e0f10ca6f37d17fb4b0e5ab33a9b60 (patch) | |
tree | d8fb0a6676de70c61c3c0783d70dbd3a1bcdc989 /src/volume-control-pulse.vala | |
parent | 787326bc59fb002cdf3231618f64e050d81a714a (diff) | |
download | ayatana-indicator-sound-f94de8d944e0f10ca6f37d17fb4b0e5ab33a9b60.tar.gz ayatana-indicator-sound-f94de8d944e0f10ca6f37d17fb4b0e5ab33a9b60.tar.bz2 ayatana-indicator-sound-f94de8d944e0f10ca6f37d17fb4b0e5ab33a9b60.zip |
fix references to unowned strings returned by Environment.get_variable()
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r-- | src/volume-control-pulse.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index fe88dda..6021447 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -503,7 +503,7 @@ public class VolumeControlPulse : VolumeControl this.context = new PulseAudio.Context (loop.get_api(), null, props); this.context.set_state_callback (context_state_callback); - var server_string = Environment.get_variable("PULSE_SERVER"); + unowned string server_string = Environment.get_variable("PULSE_SERVER"); if (context.connect(server_string, Context.Flags.NOFAIL, null) < 0) warning( "pa_context_connect() failed: %s\n", PulseAudio.strerror(context.errno())); } @@ -859,7 +859,7 @@ public class VolumeControlPulse : VolumeControl yield setup_user_proxy (); } else { // We are in a user session. We just need our own proxy - var username = Environment.get_variable ("USER"); + unowned string username = Environment.get_variable ("USER"); if (username != "" && username != null) { yield setup_user_proxy (username); } |