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 |