[Xfce4-commits] [apps/xfce4-terminal] 01/01: Use proper free functions
noreply at xfce.org
noreply at xfce.org
Thu May 3 17:07:56 CEST 2018
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 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/xfce4-terminal.
commit 79feb904389821aa7cf61eb56803a245a0806dbf
Author: Igor <f2404 at yandex.ru>
Date: Thu May 3 11:05:37 2018 -0400
Use proper free functions
This resolves two "cast between incompatible function types" warnings.
---
terminal/terminal-options.c | 3 +--
terminal/terminal-window.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/terminal/terminal-options.c b/terminal/terminal-options.c
index 081dfd6..0661468 100644
--- a/terminal/terminal-options.c
+++ b/terminal/terminal-options.c
@@ -665,8 +665,7 @@ terminal_window_attr_free (TerminalWindowAttr *attr)
{
terminal_return_if_fail (attr != NULL);
- g_slist_foreach (attr->tabs, (GFunc) terminal_tab_attr_free, NULL);
- g_slist_free (attr->tabs);
+ g_slist_free_full (attr->tabs, (GDestroyNotify) terminal_tab_attr_free);
g_free (attr->startup_id);
g_free (attr->sm_client_id);
g_free (attr->geometry);
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 9ed0a81..b588ead 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -606,8 +606,7 @@ terminal_window_finalize (GObject *object)
g_slist_free (window->priv->tabs_menu_actions);
g_free (window->priv->font);
- g_queue_foreach (window->priv->closed_tabs_list, (GFunc) terminal_window_tab_info_free, NULL);
- g_queue_free (window->priv->closed_tabs_list);
+ g_queue_free_full (window->priv->closed_tabs_list, (GDestroyNotify) terminal_window_tab_info_free);
(*G_OBJECT_CLASS (terminal_window_parent_class)->finalize) (object);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list