soc.2009.telepathy: 8e40da59: Refactored add_protocol_options(). Vario...

Will Thompson will at willthompson.co.uk
Mon May 11 09:17:10 EDT 2009


sttwister at soc.pidgin.im wrote:
> +	PurplePrefType *type;
> ...
> +			type = g_new(PurplePrefType, 1);
> +			human_name = get_human_name(name, signature, type);

You don't need to heap-allocate a PurplePrefType. Try:


> PurplePrefType type;
> ...
> human_name = get_human_name(name, signature, &type)

-- 
Will

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20090511/6673a17a/attachment.sig>


More information about the Devel mailing list