[gnome-settings-daemon/gnome-3-14] print-notifications: Close HTTP connections
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-14] print-notifications: Close HTTP connections
- Date: Mon, 23 Mar 2015 14:18:29 +0000 (UTC)
commit e2f0f94259a8072180c499c2e44de3860bb6d295
Author: Ansgar Burchardt <ansgar 43-1 org>
Date: Mon Mar 23 15:15:10 2015 +0100
print-notifications: Close HTTP connections
Don't leak HTTP connections when getting information
about a print job or when cancelling a subscription.
https://bugzilla.gnome.org/show_bug.cgi?id=746547
.../gsd-print-notifications-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c
b/plugins/print-notifications/gsd-print-notifications-manager.c
index 34c4927..8c4b520 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -443,6 +443,7 @@ process_cups_notification (GsdPrintNotificationsManager *manager,
ippDelete(response);
}
g_free (job_uri);
+ httpClose (http);
}
}
@@ -1040,6 +1041,7 @@ cancel_subscription (gint id)
ippAddInteger (request, IPP_TAG_OPERATION, IPP_TAG_INTEGER,
"notify-subscription-id", id);
ippDelete (cupsDoRequest (http, request, "/"));
+ httpClose (http);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]