Re: glib 2.34 g_main_context_unref hangs

On 01/17/2013 12:17 PM, Ken Bass wrote:
>     ch->main_context  = g_main_context_default ();

>     g_main_context_unref(context);

g_main_context_default() does not give you a ref on the default context,
so your code here is destroying an object internal to glib. If you call
this more than once (or, if you do *anything* involving the default
context after this point), I'd definitely expect it to fail.

Beyond that, it's hard to say what you might be doing wrong without
seeing more code.

-- Dan

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