Commit bcfd0222 authored by Slava Monich's avatar Slava Monich

Merge branch 'jb34899' into 'master'

See merge request !10
parents f2bf370f 02c0c4fd
...@@ -145,6 +145,7 @@ mms_transfer_dbus_client_destroy( ...@@ -145,6 +145,7 @@ mms_transfer_dbus_client_destroy(
MMSTransferDbusClient* client = data; MMSTransferDbusClient* client = data;
g_bus_unwatch_name(client->watch_id); g_bus_unwatch_name(client->watch_id);
g_hash_table_destroy(client->requests); g_hash_table_destroy(client->requests);
g_slice_free(MMSTransferDbusClient, client);
} }
static static
...@@ -243,7 +244,7 @@ mms_transfer_dbus_handle_enable_updates( ...@@ -243,7 +244,7 @@ mms_transfer_dbus_handle_enable_updates(
g_free, mms_transfer_dbus_client_destroy); g_free, mms_transfer_dbus_client_destroy);
} }
if (!client) { if (!client) {
client = g_new0(MMSTransferDbusClient, 1); client = g_slice_new0(MMSTransferDbusClient);
client->requests = g_hash_table_new(g_direct_hash, g_direct_equal); client->requests = g_hash_table_new(g_direct_hash, g_direct_equal);
client->watch_id = g_bus_watch_name_on_connection(priv->bus, client->watch_id = g_bus_watch_name_on_connection(priv->bus,
sender, G_BUS_NAME_WATCHER_FLAGS_NONE, NULL, sender, G_BUS_NAME_WATCHER_FLAGS_NONE, NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment