diff options
author | Victor Toso <victortoso@redhat.com> | 2016-01-18 15:05:45 +0100 |
---|---|---|
committer | Victor Toso <victortoso@redhat.com> | 2016-01-19 09:47:56 +0100 |
commit | c5bb4882f6a940a43c3c527e73b001300117bee8 (patch) | |
tree | fe23981cd919a9d0fdc35fd47000e92e3f8a8ec1 | |
parent | fe4f62060960207879ac11c68d71b15a341e006c (diff) | |
download | spice-gtk-c5bb4882f6a940a43c3c527e73b001300117bee8.tar.gz spice-gtk-c5bb4882f6a940a43c3c527e73b001300117bee8.tar.xz spice-gtk-c5bb4882f6a940a43c3c527e73b001300117bee8.zip |
gstaudio: set output parameter to NULL on error
This is not really triggered in the current code but this is usually
expected in case of errors; Also, the same function on record side
already does this.
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r-- | src/spice-gstaudio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spice-gstaudio.c b/src/spice-gstaudio.c index 096fea4..2759c2b 100644 --- a/src/spice-gstaudio.c +++ b/src/spice-gstaudio.c @@ -600,6 +600,10 @@ static gboolean spice_gstaudio_get_playback_volume_info_finish(SpiceAudio *audio G_OBJECT(audio), spice_gstaudio_get_playback_volume_info_async), FALSE); if (g_simple_async_result_propagate_error(simple, error)) { + /* set out args that should have new alloc'ed memory to NULL */ + if (volume != NULL) { + *volume = NULL; + } return FALSE; } |