[gnome-terminal] app: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] app: Plug a mem leak
- Date: Thu, 24 Jan 2013 13:36:46 +0000 (UTC)
commit 995b9d498d24a0bd379f13946b22aa241c5a807c
Author: Christian Persch <chpe gnome org>
Date: Thu Jan 24 14:12:22 2013 +0100
app: Plug a mem leak
==5672== 37 bytes in 1 blocks are definitely lost in loss record 5,570 of 9,310
==5672== at 0x402A059: malloc (vg_replace_malloc.c:263)
==5672== by 0x6259D75: g_malloc (gmem.c:159)
==5672== by 0x625A0A1: g_malloc_n (gmem.c:400)
==5672== by 0x6273B58: g_strdup (gstrfuncs.c:364)
==5672== by 0x628E673: g_variant_dup_string (gvariant.c:1466)
==5672== by 0x608FD2B: g_settings_get_string (gsettings.c:1560)
==5672== by 0x805B271: terminal_app_ref_profile_by_uuid (terminal-app.c:1422)
src/terminal-app.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 50e9880..ee59a11 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1417,7 +1417,7 @@ terminal_app_ref_profile_by_uuid (TerminalApp *app,
GSettings *profile = NULL;
if (uuid == NULL)
- uuid = g_settings_get_string (app->global_settings, TERMINAL_SETTING_DEFAULT_PROFILE_KEY);
+ g_settings_get (app->global_settings, TERMINAL_SETTING_DEFAULT_PROFILE_KEY, "&s", &uuid);
profile = g_hash_table_lookup (app->profiles_hash, uuid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]