[gnome-terminal/gnome-3-28] window: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-28] window: Plug a mem leak
- Date: Mon, 9 Apr 2018 19:42:29 +0000 (UTC)
commit 5adcab5f6e3cba58d865e4a4eb7d4802aad37716
Author: Christian Persch <chpe src gnome org>
Date: Mon Apr 9 21:39:29 2018 +0200
window: Plug a mem leak
src/terminal-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 65c90f0..a348a80 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1988,7 +1988,6 @@ terminal_window_screen_update (TerminalWindow *window,
{
GSettings *settings;
GtkSettings *gtk_settings;
- char *value;
if (GPOINTER_TO_INT (g_object_get_data (G_OBJECT (screen), "GT::HasSettingsConnection")))
return;
@@ -2006,8 +2005,9 @@ terminal_window_screen_update (TerminalWindow *window,
"gtk-enable-accels",
G_SETTINGS_BIND_GET);
- g_object_get (gtk_settings, "gtk-menu-bar-accel", &value, NULL);
#if !GTK_CHECK_VERSION (3, 20, 0)
+ char *value;
+ g_object_get (gtk_settings, "gtk-menu-bar-accel", &value, NULL);
g_object_set_data_full (G_OBJECT (gtk_settings), "GT::gtk-menu-bar-accel",
value, (GDestroyNotify) g_free);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]