[gnome-software] app tile: Chain up finalize to parent implementation



commit f00bb030214de119423f29e1f0f59f59a8fe3882
Author: Sebastian Keller <skeller gnome org>
Date:   Sun Jun 14 09:51:24 2020 +0200

    app tile: Chain up finalize to parent implementation
    
    This fixes a small memory leak caused by the gtk button finalize code
    never being run for GsPopularTiles.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-software/issues/903

 src/gs-app-tile.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index f276ae2b..ba8f0e19 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -85,6 +85,8 @@ gs_app_tile_finalize (GObject *object)
                g_signal_handlers_disconnect_by_func (priv->app, gs_app_tile_state_changed_cb, self);
        g_clear_handle_id (&priv->app_state_changed_idle_id, g_source_remove);
        g_clear_object (&priv->app);
+
+       G_OBJECT_CLASS (gs_app_tile_parent_class)->finalize (object);
 }
 
 void


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