reference count not freed in dispose?
- From: Yu Feng <rainwoodman gmail com>
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: reference count not freed in dispose?
- Date: Fri, 12 Dec 2008 00:41:20 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]