Question about signals in GObject



Hello again! ;)

I need to know how signals in GObject are called, because I pass dynamically
allocated memory as one of callback's arguments and I need to know, when i
can free it. I need to know, when exactly callback function is called. Is it
called during  'g_signal_emit ()' or it's added to GMainLoop or something?
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);

-- 
Cya!
Tom



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