GNOME Bugzilla – Bug 686016
critical warning out of st-im-text.c
Last modified: 2012-10-12 12:57:02 UTC
Seen in my logs after unlocking the lock screen: Window manager warning: Log level 8: gtk_im_context_reset: assertion `GTK_IS_IM_CONTEXT (context)' failed Window manager warning: Log level 8: gtk_im_context_set_client_window: assertion `GTK_IS_IM_CONTEXT (context)' failed
Created attachment 226318 [details] [review] st-im-text: Chain up to parent first in dispose() The actor's GtkIMContext is freed in dispose and reset in unrealize - as ClutterActor's dispose will unrealize the actor if necessary, chaining up to the parent after clearing the im context will result in warnings if the actor is still realized, so chain up first.
Can't we just replace _dispose() here with _finalize() instead?
Not really, references should be dropped in dispose. Alternatively we could guard against context == NULL in unrealize of course.
Couldn't you just rely on the actor being unrealized and drop the dispose here, too?
No, the context is created in init(), so we'll leak if the actor is never realized.
Ah, right.
Review of attachment 226318 [details] [review]: This is fine.
Attachment 226318 [details] pushed as 4a92d7d - st-im-text: Chain up to parent first in dispose()