| Index: ui/display/util/x11/edid_parser_x11.cc
|
| diff --git a/ui/display/util/x11/edid_parser_x11.cc b/ui/display/util/x11/edid_parser_x11.cc
|
| index 47f8fb68b684dc2c358f706d4746dcce55fe899c..4b07f0a773146ca1bfc277cc7a263cb98178d4d6 100644
|
| --- a/ui/display/util/x11/edid_parser_x11.cc
|
| +++ b/ui/display/util/x11/edid_parser_x11.cc
|
| @@ -39,14 +39,14 @@ bool GetEDIDProperty(XID output, std::vector<uint8_t>* edid) {
|
|
|
| bool has_edid_property = false;
|
| int num_properties = 0;
|
| - Atom* properties = XRRListOutputProperties(display, output, &num_properties);
|
| + gfx::XScopedPtr<Atom[]> properties(
|
| + XRRListOutputProperties(display, output, &num_properties));
|
| for (int i = 0; i < num_properties; ++i) {
|
| if (properties[i] == edid_property) {
|
| has_edid_property = true;
|
| break;
|
| }
|
| }
|
| - XFree(properties);
|
| if (!has_edid_property)
|
| return false;
|
|
|
|
|