speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH] Convert src/modules to use GLib memory management exclusively.


From: Trevor Saunders
Subject: [PATCH] Convert src/modules to use GLib memory management exclusively.
Date: Fri, 24 Sep 2010 16:21:53 -0400

Hi,

> Those are good.  Thanks!  More patches are on the way: audio subsystem,
> common library, and API.

hmm, I'm not sure how great an idea it is for libspeechd to be using
glib.  Particularly I'm not convinced that all clients want to be exited
without being asked if memory can't be allocated.

Trev

> 
> > we have
> > spd_fdset_copy(TFDSetElement old)
> >      TFDSetElement new;
> > ...
> >      return new;
> >
> > where new is a function's local struct.
> 
> This is perfectly legit.  The struct is returned by value.  It is
> copied.  Thus, we aren't returning data that has gone out of scope.
> 
> -- Chris



> _______________________________________________
> Speechd mailing list
> Speechd at lists.freebsoft.org
> http://lists.freebsoft.org/mailman/listinfo/speechd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: 
<http://lists.freebsoft.org/pipermail/speechd/attachments/20100924/b83129c6/attachment.pgp>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]