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

Issue 277433002: MQParser memory leak fix (Closed)

Created:
6 years, 7 months ago by Yoav Weiss
Modified:
6 years, 7 months ago
Reviewers:
eseidel
CC:
blink-reviews, kenneth.christiansen, Yoav Weiss, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

MQParser memory leak fix The MQParser failed to free CSSParserValues when a MediaQuery included more than one MediaQueryExpressions. This CL fixes that. BUG=369417 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173547

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed clear to clearAndLeakValues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -11 lines) Patch
M Source/core/css/CSSParserValues.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/CSSParserValues.cpp View 1 2 chunks +18 lines, -7 lines 0 comments Download
M Source/core/css/CSSParserValuesTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/MediaQueryParser.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yoav Weiss
6 years, 7 months ago (2014-05-07 11:27:43 UTC) #1
eseidel
https://codereview.chromium.org/277433002/diff/1/Source/core/css/CSSParserValues.cpp File Source/core/css/CSSParserValues.cpp (right): https://codereview.chromium.org/277433002/diff/1/Source/core/css/CSSParserValues.cpp#newcode51 Source/core/css/CSSParserValues.cpp:51: destroy(m_values); Seems like this could end up destroying twice. ...
6 years, 7 months ago (2014-05-07 15:26:09 UTC) #2
Yoav Weiss
https://codereview.chromium.org/277433002/diff/1/Source/core/css/CSSParserValues.cpp File Source/core/css/CSSParserValues.cpp (right): https://codereview.chromium.org/277433002/diff/1/Source/core/css/CSSParserValues.cpp#newcode51 Source/core/css/CSSParserValues.cpp:51: destroy(m_values); On 2014/05/07 15:26:10, eseidel wrote: > Seems like ...
6 years, 7 months ago (2014-05-07 15:34:42 UTC) #3
eseidel
Since other places have clearly had to invent this kind of destruction code can we ...
6 years, 7 months ago (2014-05-07 15:47:26 UTC) #4
eseidel
Why is clear ever valid? Clear appear to just clear out the list and presumably ...
6 years, 7 months ago (2014-05-07 15:49:50 UTC) #5
eseidel
lgtm
6 years, 7 months ago (2014-05-07 15:52:43 UTC) #6
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 7 months ago (2014-05-07 16:41:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/277433002/20001
6 years, 7 months ago (2014-05-07 16:42:22 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 17:29:02 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 18:00:25 UTC) #10
Message was sent while issue was closed.
Change committed as 173547

Powered by Google App Engine
This is Rietveld 408576698