Re: A small bug fix in gtkimmulticontext.c



<yaoz vidar niaaa nih gov> writes:

> While testing GTK+ 2.0, I find a small bug in
> gtk+/gtk/gtkimmulticontext.c:gtk_im_multicontext_get_slave().  The line
> 
>       gtk_im_multicontext_set_slave (multicontext, _gtk_im_module_create (global_context_id), FALSE);
> 
> creates a new slave GtkIMContext but it is not un-referenced.  This results
> in the GtkIMContext's finalize() method never being called since there will
> always be a reference to it in memory.
> 
> The fix is very simple and I have attached it in the mail.

Fix in CVS, thanks,

Regards,
                                        Owen



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