[gedit-cossa] Do not leak the tab name
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-cossa] Do not leak the tab name
- Date: Sat, 28 May 2011 13:12:14 +0000 (UTC)
commit d83b0cc13854fff2e76c0ff89e2c768cb59e4d76
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 28 15:14:18 2011 +0200
Do not leak the tab name
src/gedit-cossa-plugin.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gedit-cossa-plugin.c b/src/gedit-cossa-plugin.c
index 31b19c3..c5306ae 100644
--- a/src/gedit-cossa-plugin.c
+++ b/src/gedit-cossa-plugin.c
@@ -253,6 +253,7 @@ preview_activated_cb (GtkAction *action,
if (!window)
{
GeditTab *cur_tab;
+ gchar *tab_name;
gchar *title;
window = cossa_window_new ();
@@ -266,8 +267,10 @@ preview_activated_cb (GtkAction *action,
cur_tab = gedit_window_get_active_tab (priv->window);
+ tab_name = _gedit_tab_get_name (cur_tab);
title = g_strdup_printf (_("GTK+ Theme preview - %s"),
- _gedit_tab_get_name (cur_tab));
+ tab_name);
+ g_free (tab_name);
gtk_window_set_title (GTK_WINDOW (window), title);
g_free (title);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]