[gnome-terminal/gnome-3-28] client: legacy: Fix invalid free
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-28] client: legacy: Fix invalid free
- Date: Tue, 29 May 2018 08:51:08 +0000 (UTC)
commit 3552324c903dd950f89b132a28c3fe489191f1d3
Author: Christian Persch <chpe src gnome org>
Date: Tue May 29 10:47:22 2018 +0200
client: legacy: Fix invalid free
Use g_free() for memory allocated with g_new().
https://gitlab.gnome.org/GNOME/gnome-terminal/issues/1
(cherry picked from commit 2f7053f5fa9154437b9397cd204a38e2686107bc)
src/terminal-options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/terminal-options.c b/src/terminal-options.c
index d1e8a4a4..83ead890 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -1277,7 +1277,7 @@ terminal_options_free (TerminalOptions *options)
g_clear_object (&options->profiles_list);
- g_slice_free (TerminalOptions, options);
+ g_free (options);
}
static GOptionContext *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]