Re: glib 2.34 g_main_context_unref hangs
- From: Dan Winship <danw gnome org>
- To: Ken Bass <kbass kenbass com>
- Cc: gtk-devel-list gnome org
- Subject: Re: glib 2.34 g_main_context_unref hangs
- Date: Thu, 17 Jan 2013 13:58:57 -0500
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]