Properly free dbus error in atspi_accessible_get_process_id
authorMike Gorse <mgorse@novell.com>
Wed, 27 Jul 2011 01:16:45 +0000 (20:16 -0500)
committerMike Gorse <mgorse@novell.com>
Wed, 27 Jul 2011 01:16:45 +0000 (20:16 -0500)
atspi/atspi-accessible.c

index dba7fe06095a2a1d8eae10f584ed2bc80d0f5ecb..cff761edfd330bc8627f3b0c900892602215cdcd 100644 (file)
@@ -1506,7 +1506,7 @@ atspi_accessible_get_process_id (AtspiAccessible *accessible, GError **error)
   dbus_message_unref (message);
   dbus_message_get_args (reply, NULL, DBUS_TYPE_UINT32, &pid, DBUS_TYPE_INVALID);
   dbus_message_unref (reply);
-  dbus_error_init (&error);
+  dbus_error_free (&d_error);
   return pid;
 }