changeset 23099:1356d75fd958

Unleak
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 23 May 2008 13:39:22 +0000
parents 3b54c57749e8
children c77d66886425
files libpurple/network.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/network.c	Fri May 23 13:38:40 2008 +0000
+++ b/libpurple/network.c	Fri May 23 13:39:22 2008 +0000
@@ -663,6 +663,7 @@
 
 	if (!dbus_g_proxy_call(nm_proxy, "state", &err, G_TYPE_INVALID, G_TYPE_UINT, &state, G_TYPE_INVALID)) {
 		/* XXX: Print an error? */
+		g_error_free(err);
 		return NM_STATE_UNKNOWN;
 	}