[gnome-settings-daemon] print-notifications: Close HTTP connections



commit ee56ce78c59037247d1aa9fa534b302724648851
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]