[gedit] Fix dangerous typo and remove empty finalize method



commit b9d697b74d9931a24840b04f56075a73d7d81bad
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Feb 28 23:22:02 2010 +0100

    Fix dangerous typo and remove empty finalize method

 gedit/gedit-gio-document-loader.c |    7 -------
 gedit/gedit-gio-document-saver.c  |    2 +-
 2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gedit/gedit-gio-document-loader.c b/gedit/gedit-gio-document-loader.c
index cc956e2..a4ad128 100644
--- a/gedit/gedit-gio-document-loader.c
+++ b/gedit/gedit-gio-document-loader.c
@@ -141,19 +141,12 @@ gedit_gio_document_loader_dispose (GObject *object)
 }
 
 static void
-gedit_gio_document_loader_finalize (GObject *object)
-{
-	G_OBJECT_CLASS (gedit_gio_document_loader_parent_class)->finalize (object);
-}
-
-static void
 gedit_gio_document_loader_class_init (GeditGioDocumentLoaderClass *klass)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (klass);
 	GeditDocumentLoaderClass *loader_class = GEDIT_DOCUMENT_LOADER_CLASS (klass);
 
 	object_class->dispose = gedit_gio_document_loader_dispose;
-	object_class->finalize = gedit_gio_document_loader_finalize;
 
 	loader_class->load = gedit_gio_document_loader_load;
 	loader_class->cancel = gedit_gio_document_loader_cancel;
diff --git a/gedit/gedit-gio-document-saver.c b/gedit/gedit-gio-document-saver.c
index c0e2dd9..caf7186 100644
--- a/gedit/gedit-gio-document-saver.c
+++ b/gedit/gedit-gio-document-saver.c
@@ -146,7 +146,7 @@ gedit_gio_document_saver_class_init (GeditGioDocumentSaverClass *klass)
 	GObjectClass *object_class = G_OBJECT_CLASS (klass);
 	GeditDocumentSaverClass *saver_class = GEDIT_DOCUMENT_SAVER_CLASS (klass);
 
-	object_class->finalize = gedit_gio_document_saver_dispose;
+	object_class->dispose = gedit_gio_document_saver_dispose;
 
 	saver_class->save = gedit_gio_document_saver_save;
 	saver_class->get_file_size = gedit_gio_document_saver_get_file_size;



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