Re: dynamically growing 2D aray of structues



>  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]