These may not be strictly necessary, but can make tracking
for leaks easier by placing a diagnostic in the method.
static GObjectClass * parent_class = NULL;
+static void
+psppire_data_editor_finalize (GObject *obj)
+{
+ /* Chain up to the parent class */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
+}
+
static void
psppire_data_editor_dispose (GObject *obj)
{
parent_class = g_type_class_peek_parent (klass);
object_class->dispose = psppire_data_editor_dispose;
+ object_class->finalize = psppire_data_editor_finalize;
object_class->set_property = psppire_data_editor_set_property;
object_class->get_property = psppire_data_editor_get_property;
static GObjectClass * parent_class = NULL;
static gboolean dispose_has_run = FALSE;
+static void
+psppire_data_sheet_finalize (GObject *obj)
+{
+ /* Chain up to the parent class */
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
+}
+
static void
psppire_data_sheet_dispose (GObject *obj)
{
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
object_class->dispose = psppire_data_sheet_dispose;
+ object_class->finalize = psppire_data_sheet_finalize;
parent_class = g_type_class_peek_parent (class);
}