[vinagre] Fixed a mem leak
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Fixed a mem leak
- Date: Mon, 3 Aug 2009 19:31:48 +0000 (UTC)
commit 32b9dc4653c93dc9fb2e6fbf3258485ea78a9b8d
Author: Jonh Wendell <jwendell gnome org>
Date: Mon Aug 3 16:00:04 2009 -0300
Fixed a mem leak
vinagre/vinagre-window.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vinagre/vinagre-window.c b/vinagre/vinagre-window.c
index f67aa68..a4f2647 100644
--- a/vinagre/vinagre-window.c
+++ b/vinagre/vinagre-window.c
@@ -251,9 +251,10 @@ static void
activate_recent_cb (GtkRecentChooser *action, VinagreWindow *window)
{
VinagreConnection *conn;
- gchar *error;
+ gchar *error, *uri;
- conn = vinagre_connection_new_from_string (gtk_recent_chooser_get_current_uri (action),
+ uri = gtk_recent_chooser_get_current_uri (action);
+ conn = vinagre_connection_new_from_string (uri,
&error,
TRUE);
if (conn)
@@ -265,6 +266,7 @@ activate_recent_cb (GtkRecentChooser *action, VinagreWindow *window)
vinagre_utils_show_error (NULL, error ? error : _("Unknown error"), GTK_WINDOW (window));
g_free (error);
+ g_free (uri);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]