[gnome-software: 1/3] gs-updates-page: Drop duplicate size group initialisation




commit d42b0a9c06ca662619788ae599355ca05fe4b6b7
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Mar 3 15:39:46 2022 +0000

    gs-updates-page: Drop duplicate size group initialisation
    
    They’re already initialised in `init()`.
    
    This fixes a memory leak.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-updates-page.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 686ec740c..0ef53f67f 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -1311,14 +1311,6 @@ gs_updates_page_setup (GsPage *page,
                          G_CALLBACK (gs_updates_page_button_network_settings_cb),
                          self);
 
-       /* visually aligned */
-       self->sizegroup_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-       self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-       self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-       self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-       self->sizegroup_button_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-       self->sizegroup_header = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
-
        /* set initial state */
        if (!gs_plugin_loader_get_allow_updates (self->plugin_loader))
                self->state = GS_UPDATES_PAGE_STATE_MANAGED;


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