diff options
author | António Fernandes <antoniof@gnome.org> | 2019-06-22 19:14:41 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-03-10 14:02:25 +0000 |
commit | 3ea5529e5a50f07938d29328d35238d11ae3c324 (patch) | |
tree | b99ed505f54f4b766ecfccf735f78e119c93d3fb | |
parent | 0ddd5c64157ae23021bd429a325a469629fd4077 (diff) | |
download | nautilus-3ea5529e5a50f07938d29328d35238d11ae3c324.tar.gz |
pathbar: Don't keep ref to menus to copy
We don't need to anymore. Also, we are leaking them.
-rw-r--r-- | src/nautilus-pathbar.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c index 6bf10c93d..820a562b9 100644 --- a/src/nautilus-pathbar.c +++ b/src/nautilus-pathbar.c @@ -104,8 +104,6 @@ struct _NautilusPathBar GMenu *extensions_section; GMenu *templates_submenu; GMenu *button_menu; - GMenu *extensions_background_menu; - GMenu *templates_menu; }; G_DEFINE_TYPE (NautilusPathBar, nautilus_path_bar, GTK_TYPE_CONTAINER); @@ -924,12 +922,6 @@ nautilus_path_bar_set_extensions_background_menu (NautilusPathBar *self, { g_return_if_fail (NAUTILUS_IS_PATH_BAR (self)); - g_clear_object (&self->extensions_background_menu); - if (menu != NULL) - { - self->extensions_background_menu = g_object_ref (menu); - } - nautilus_gmenu_set_from_model (self->extensions_section, G_MENU_MODEL (menu)); } @@ -940,12 +932,6 @@ nautilus_path_bar_set_templates_menu (NautilusPathBar *self, { g_return_if_fail (NAUTILUS_IS_PATH_BAR (self)); - g_clear_object (&self->templates_menu); - if (menu != NULL) - { - self->templates_menu = g_object_ref (menu); - } - nautilus_gmenu_set_from_model (self->templates_submenu, G_MENU_MODEL (menu)); } |