Re: Re: send_action_list vala
- From: Jens Georg <mail jensge org>
- To: andrea zambon <zamby ing gmail com>
- Cc: gupnp-list gnome org
- Subject: Re: Re: send_action_list vala
- Date: Sat, 11 Feb 2012 11:49:28 +0200
> > .....
> > http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO;SONY.COM_PN=AVC_TS_HD_24_AC3_ISO;DLNA.ORG_FLAGS=8d700000000000000000000000000000,http-get:*:video/x-mp2t-mphl-188:*
> > *** glibc detected *** ./browsing-test: double free or corruption
>
> Ok, I can reproduce that. It looks like mismatching alloc/free functions
> are used.
Ok, attached a modified version of the patch to
https://bugzilla.gnome.org/show_bug.cgi?id=669702. GUPnP allocates
GValue with g_slice_new but Vala generates g_free for it. The new
version of the patch removes automatic memory management from the output
values, so you either have to free them individually with
GLib.Slice.free (typeof (Value), v) or use the convenience function I
added to do that for the whole list. Also note since Value* is now a
pointer, you have to use -> instead of ".".
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]