[epiphany] header-bar: Fix memory leak when changing homepage
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] header-bar: Fix memory leak when changing homepage
- Date: Mon, 30 Jan 2017 03:59:31 +0000 (UTC)
commit c1ff13e2bb0024125f9add68901542ce32face50
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jan 29 21:57:59 2017 -0600
header-bar: Fix memory leak when changing homepage
https://bugzilla.gnome.org/show_bug.cgi?id=775641
src/ephy-header-bar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index b6c88c3..e7928d7 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -189,10 +189,11 @@ homepage_url_changed (GSettings *settings,
const char *key,
GtkWidget *button)
{
- const char *setting;
+ char *setting;
setting = g_settings_get_string (settings, key);
gtk_widget_set_visible (button, setting && setting[0]);
+ g_free (setting);
}
typedef enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]