From 3ad6d78ff107ca2a57200151043813041eec9883 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 23 Nov 2022 09:56:37 +0100 Subject: preferences: Simplify video widget refcounting --- src/totem-preferences-dialog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/totem-preferences-dialog.c b/src/totem-preferences-dialog.c index a3892193e..e6ea73095 100644 --- a/src/totem-preferences-dialog.c +++ b/src/totem-preferences-dialog.c @@ -227,8 +227,8 @@ totem_preferences_dialog_constructed (GObject *object) { TotemPreferencesDialog *prefs = TOTEM_PREFERENCES_DIALOG (object); g_autoptr(TotemPluginsEngine) engine = NULL; + g_autoptr(GtkWidget) bvw = NULL; TotemObject *totem; - GtkWidget *bvw; guint i, hidden; char *font, *encoding; const GList *plugin_infos, *l; @@ -355,8 +355,6 @@ totem_preferences_dialog_constructed (GObject *object) gtk_container_add (GTK_CONTAINER (prefs->tpw_plugins_list), plugin_row); } - - g_object_unref (bvw); } static void -- cgit v1.2.1