[gnome-calendar] window: fix memory leak
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: fix memory leak
- Date: Thu, 4 Dec 2014 22:41:22 +0000 (UTC)
commit 80b3e5d3c8b653fe1b8e60ab556b760ba4d0a621
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Nov 3 13:19:46 2014 -0500
window: fix memory leak
src/gcal-window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 009e1fb..dcaf5c9 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1247,10 +1247,13 @@ gcal_window_search_changed (GtkEditable *editable,
if (gtk_entry_get_text_length (GTK_ENTRY (priv->search_entry)) != 0)
{
- title = g_strdup_printf ("Results for \"%s\"",
- gtk_entry_get_text (GTK_ENTRY (priv->search_entry)));
+ title =
+ g_strdup_printf (
+ "Results for \"%s\"",
+ gtk_entry_get_text (GTK_ENTRY (priv->search_entry)));
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->header_bar),
title);
+ g_free (title);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]