summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsgar Burchardt <ansgar@43-1.org>2015-03-23 15:15:10 +0100
committerMarek Kasik <mkasik@redhat.com>2015-03-23 15:49:09 +0100
commitee56ce78c59037247d1aa9fa534b302724648851 (patch)
tree96ba965259468dba96fe20117fa9811008b4a6ec
parent4d3eb2e742f1b5bb3b785dd1dc413ededc3dd021 (diff)
downloadgnome-settings-daemon-ee56ce78c59037247d1aa9fa534b302724648851.tar.gz
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
-rw-r--r--plugins/print-notifications/gsd-print-notifications-manager.c2
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 34c49270..8c4b520c 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);
}
}