Re: reference count not freed in dispose?



Yes, and priv->adjustment should be set to NULL afterwards to stop it
getting unreffed more than once. Please file a bug.

Philip

On Fri, 2008-12-12 at 00:41 -0500, Yu Feng wrote:
> Hi,
> 
> I was reading gtkcellrendererspin.c
> and saw:
> 
> static void
> gtk_cell_renderer_spin_finalize (GObject *object)
> {
>   GtkCellRendererSpinPrivate *priv;
> 
>   priv = GTK_CELL_RENDERER_SPIN_GET_PRIVATE (object);
> 
>   if (priv && priv->adjustment)
>     g_object_unref (priv->adjustment);
> 
>   G_OBJECT_CLASS (gtk_cell_renderer_spin_parent_class)->finalize (object);
> }
> 
> Isn't it suggested that the reference counts should be freed in dispose
> method in GObject's document?
> 
> Yu
> 
> 
> 
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Attachment: signature.asc
Description: This is a digitally signed message part



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