NetworkManager r3227 - branches/NETWORKMANAGER_0_6_0_RELEASE/src



Author: dcbw
Date: Wed Jan  9 19:03:16 2008
New Revision: 3227
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3227&view=rev

Log:
Don't leak a DBusError object

Modified:
   branches/NETWORKMANAGER_0_6_0_RELEASE/src/NetworkManager.c

Modified: branches/NETWORKMANAGER_0_6_0_RELEASE/src/NetworkManager.c
==============================================================================
--- branches/NETWORKMANAGER_0_6_0_RELEASE/src/NetworkManager.c	(original)
+++ branches/NETWORKMANAGER_0_6_0_RELEASE/src/NetworkManager.c	Wed Jan  9 19:03:16 2008
@@ -369,6 +369,8 @@
 	 * uses INT.
 	 */
 	if (!dbus_message_get_args (reply, &err, DBUS_TYPE_UINT32, &uint_status, DBUS_TYPE_INVALID)) {
+		dbus_error_free (&err);
+
 		if (!dbus_message_get_args (reply, &err, DBUS_TYPE_INT32, &int_status, DBUS_TYPE_INVALID)) {
 			if (!ks_err_message || strcmp (ks_err_message, err.message)) {
 				nm_info ("Error getting killswitch power arguments: %s - %s", err.name, err.message);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]