Re: dynamically growing 2D aray of structues
- From: Tor Lillqvist <tml iki fi>
- To: Gnome List <gtk-list gnome org>
- Subject: Re: dynamically growing 2D aray of structues
- Date: Thu, 26 Nov 2009 21:31:35 +0200
> g_print ("Freeing struct %p: %s\n", p, p->p);
>
> g_free (p->p);
> g_free (p);
That should of course be g_slice_free (mystuct, p) as I allocated the
structure with g_slice_new.
/me blushes.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]