mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 06:30:33 +01:00
Fix two more leaks of a DBusMessage
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@945 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
31027d4d42
commit
88e3591ad3
1 changed files with 2 additions and 1 deletions
|
|
@ -142,9 +142,9 @@ static void nmwa_dbus_update_wireless_enabled (NMWirelessApplet *applet)
|
|||
if ((message = dbus_message_new_method_call (NM_DBUS_SERVICE, NM_DBUS_PATH, NM_DBUS_INTERFACE, "getWirelessEnabled")))
|
||||
{
|
||||
dbus_connection_send_with_reply (applet->connection, message, &pcall, -1);
|
||||
dbus_message_unref (message);
|
||||
if (pcall)
|
||||
dbus_pending_call_set_notify (pcall, nmwa_dbus_update_wireless_enabled_cb, applet, NULL);
|
||||
dbus_message_unref (message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -321,6 +321,7 @@ static void hal_info_parent_cb (DBusPendingCall *pcall, void *user_data)
|
|||
vendor_cb_data->parent_op = g_strdup (op);
|
||||
dbus_pending_call_set_notify (vendor_pcall, hal_info_vendor_cb, vendor_cb_data, (DBusFreeFunction) free_hal_info_cb_data);
|
||||
}
|
||||
dbus_message_unref (message);
|
||||
}
|
||||
}
|
||||
dbus_message_unref (reply);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue