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

Re: Question about signals in GObject



On Sun, Jul 29, 2007 at 12:45:38PM +0200, Tomasz Jankowski wrote:
> My code looks like this, please tell me if it may occur any memory
> allocation errors:
> 
> A = g_alloca ();
> g_signal_emit(..., A and other args);
> g_free (A);

If you call g_free() on g_alloca()-allocated memory, errors
will occur.

Yeti

--
http://gwyddion.net/


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