[glib] Plug a mem leak in the gdbus-connection test
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Plug a mem leak in the gdbus-connection test
- Date: Tue, 17 Aug 2010 22:14:24 +0000 (UTC)
commit a62a2fd8edc0ca771ca1c1df1889766f3c73b0e4
Author: Christian Persch <chpe gnome org>
Date: Tue Aug 17 18:08:07 2010 +0200
Plug a mem leak in the gdbus-connection test
Bug #627182.
gio/tests/gdbus-connection.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gdbus-connection.c b/gio/tests/gdbus-connection.c
index fc02746..3535f7d 100644
--- a/gio/tests/gdbus-connection.c
+++ b/gio/tests/gdbus-connection.c
@@ -871,8 +871,8 @@ test_connection_basic (void)
GDBusConnection *connection;
GError *error;
GDBusCapabilityFlags flags;
- const gchar *guid;
- const gchar *name;
+ gchar *guid;
+ gchar *name;
gboolean closed;
gboolean exit_on_close;
GIOStream *stream;
@@ -911,6 +911,8 @@ test_connection_basic (void)
g_object_unref (stream);
g_object_unref (connection);
+ g_free (name);
+ g_free (guid);
session_bus_down ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]