[Xfce4-commits] [apps/gigolo] 13/26: Fix memory leaks
noreply at xfce.org
noreply at xfce.org
Thu Oct 25 08:04:05 CEST 2018
This is an automated email from the git hooks/post-receive script.
l a n d r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/gigolo.
commit c48590cc84ed065a8d43808e75153ce64021aa5d
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Mon Oct 22 23:03:15 2018 -0400
Fix memory leaks
---
src/settings.c | 2 ++
src/window.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/src/settings.c b/src/settings.c
index 9ae0826..e20b067 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -548,6 +548,8 @@ static void gigolo_settings_finalize(GObject* object)
g_free(priv->config_filename);
g_free(priv->bookmarks_filename);
g_free(priv->config_path);
+ g_free(priv->file_manager);
+ g_free(priv->terminal);
G_OBJECT_CLASS(gigolo_settings_parent_class)->finalize(object);
}
diff --git a/src/window.c b/src/window.c
index a36a3d5..a0081dd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -142,6 +142,8 @@ static void gigolo_window_destroy(GigoloWindow *window)
g_object_unref(priv->backend_gvfs);
priv->backend_gvfs = NULL;
+ g_object_unref (G_OBJECT (priv->builder));
+
gtk_widget_destroy(GTK_WIDGET(window));
gtk_main_quit();
@@ -1141,6 +1143,7 @@ static void toggle_set_active(GigoloWindow *window, const gchar *name, gboolean
widget_name = g_strconcat ("menuitem_", name, NULL);
widget = GTK_WIDGET (gtk_builder_get_object (builder, widget_name));
+ g_free (widget_name);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (widget), set);
}
@@ -1388,6 +1391,7 @@ static void create_ui_elements(GigoloWindow *window)
g_signal_connect(priv->bookmarks_menu, "item-clicked",
G_CALLBACK(action_bookmark_activate_cb), window);
g_signal_connect(priv->bookmarks_menu, "button-clicked", G_CALLBACK(mount_cb), window);
+ g_object_ref (priv->bookmarks_menu);
bind_actions (window);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list