Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: printing/backend/cups_deleters.cc

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: format and merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/backend/cups_deleters.h ('k') | printing/backend/cups_ipp_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/cups_deleters.cc
diff --git a/printing/backend/cups_deleters.cc b/printing/backend/cups_deleters.cc
index c37366cf093d9c7dd9fed2fa015e4d12b00854d6..2dccc5b5f2f990d6e4d4691b28b5cfccf4c909ec 100644
--- a/printing/backend/cups_deleters.cc
+++ b/printing/backend/cups_deleters.cc
@@ -18,4 +18,9 @@ void DestInfoDeleter::operator()(cups_dinfo_t* info) const {
cupsFreeDestInfo(info);
}
+void OptionDeleter::operator()(cups_option_t* option) const {
+ // Frees the name and value buffers then the struct itself
+ cupsFreeOptions(1, option);
+}
+
} // namespace printing
« no previous file with comments | « printing/backend/cups_deleters.h ('k') | printing/backend/cups_ipp_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698