Re: [spice-gtk PATCH v2] gstaudio: set output parameter to NULL on error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Jan 18, 2016 at 02:30:28PM -0600, Jonathon Jongsma wrote:
> Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
>

Thanks, I'll be pushing this soon

> On Mon, 2016-01-18 at 15:09 +0100, Victor Toso wrote:
> > 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.
> > ---
> >  src/spice-gstaudio.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > 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;
> >      }
> >  
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]