[balsa] gmime-filter-header: Use provided parent-class



commit dcd19aff1e622692550b6f754b1d1a5d3adddf18
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Jun 6 10:20:56 2019 -0400

    gmime-filter-header: Use provided parent-class

 libbalsa/gmime-filter-header.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/libbalsa/gmime-filter-header.c b/libbalsa/gmime-filter-header.c
index 225043fa2..177a09044 100644
--- a/libbalsa/gmime-filter-header.c
+++ b/libbalsa/gmime-filter-header.c
@@ -41,17 +41,12 @@ struct _GMimeFilterHeaderClass {
 G_DEFINE_TYPE(GMimeFilterHeader, g_mime_filter_header, GMIME_TYPE_FILTER)
 
 
-static GMimeFilterClass *parent_class = NULL;
-
-
 static void
 g_mime_filter_header_class_init(GMimeFilterHeaderClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS(klass);
        GMimeFilterClass *filter_class = GMIME_FILTER_CLASS(klass);
 
-       parent_class = g_type_class_ref(GMIME_TYPE_FILTER);
-
        object_class->finalize = g_mime_filter_header_finalize;
 
        filter_class->copy = filter_copy;
@@ -70,7 +65,7 @@ g_mime_filter_header_init(GMimeFilterHeader *self)
 static void
 g_mime_filter_header_finalize(GObject *object)
 {
-       G_OBJECT_CLASS(parent_class)->finalize(object);
+       G_OBJECT_CLASS(g_mime_filter_header_parent_class)->finalize(object);
 }
 
 static GMimeFilter *


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