chain up unconditionally in finalize() and dispose(). Also don't

2008-06-16  Michael Natterer  <mitch@imendio.com>

	* *.c: chain up unconditionally in finalize() and dispose(). Also
	don't dereference these function pointers when calling them since
	that has no meaning at all.


svn path=/trunk/; revision=7048
This commit is contained in:
Michael Natterer
2008-06-16 09:54:04 +00:00
committed by Michael Natterer
parent b207146976
commit a4427bfff5
35 changed files with 69 additions and 102 deletions

View File

@@ -117,8 +117,8 @@ g_file_enumerator_dispose (GObject *object)
g_object_unref (enumerator->priv->container);
enumerator->priv->container = NULL;
}
(*G_OBJECT_CLASS (g_file_enumerator_parent_class)->dispose) (object);
G_OBJECT_CLASS (g_file_enumerator_parent_class)->dispose (object);
}
static void
@@ -131,8 +131,7 @@ g_file_enumerator_finalize (GObject *object)
if (!enumerator->priv->closed)
g_file_enumerator_close (enumerator, NULL, NULL);
if (G_OBJECT_CLASS (g_file_enumerator_parent_class)->finalize)
(*G_OBJECT_CLASS (g_file_enumerator_parent_class)->finalize) (object);
G_OBJECT_CLASS (g_file_enumerator_parent_class)->finalize (object);
}
static void