}
}
}
-#endif DEBUG_OBJECTS
+#endif /* DEBUG_OBJECTS */
void
g_object_type_init (void) /* sync with gtype.c */
#ifdef DEBUG_OBJECTS
g_atexit (debug_objects_atexit);
-#endif DEBUG_OBJECTS
+#endif /* DEBUG_OBJECTS */
}
static void
debug_objects_count++;
g_hash_table_insert (debug_objects_ht, object, object);
}
-#endif DEBUG_OBJECTS
+#endif /* DEBUG_OBJECTS */
}
static void
object->ref_count -= 1;
if (object->ref_count == 0) /* may have been re-referenced meanwhile */
- G_OBJECT_GET_CLASS (object)->finalize (object);
+ {
+ G_OBJECT_GET_CLASS (object)->finalize (object);
+ g_type_free_instance ((GTypeInstance*) object);
+ }
}
static void
g_hash_table_remove (debug_objects_ht, object);
debug_objects_count--;
}
-#endif DEBUG_OBJECTS
-
- g_type_free_instance ((GTypeInstance*) object);
+#endif /* DEBUG_OBJECTS */
}
gpointer
g_object_do_dispatch_param_changed (GObject *object,
GParamSpec *pspec)
{
- g_message ("NOTIFICATION: parameter `%s' changed on object `%s'",
+/* g_message ("NOTIFICATION: parameter `%s' changed on object `%s'",
pspec->name,
- G_OBJECT_TYPE_NAME (object));
+ G_OBJECT_TYPE_NAME (object));*/
}
static gboolean