Closed
Bug 1020439
Opened 11 years ago
Closed 11 years ago
GetCairoSurfaceForSourceSurface fails to free surf on failure
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: mccr8, Assigned: sodan, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, memory-leak, Whiteboard: [MemShrink:P3] )
Attachments
(1 file)
|
1.23 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
cairo_surface_status derefs surf, so it seems like surf must be allocated.
I think this is a regression from bug 803568. Given that that was a sec bug, I assume this isn't a common thing to have happen.
Looking at the patch there, I'm guessing this also affects DrawTargetCairo::CreateSourceSurfaceFromData().
https://hg.mozilla.org/mozilla-central/rev/152d3caaf16a
| Reporter | ||
Comment 1•11 years ago
|
||
DrawTargetCairo::CreateShadowDrawTarget() seems to do the same thing, with |tee|.
Updated•11 years ago
|
Whiteboard: [MemShrink] → [MemShrink] [mentor=mccr8]
Updated•11 years ago
|
Whiteboard: [MemShrink] [mentor=mccr8] → [MemShrink:P3] [mentor=mccr8]
Updated•11 years ago
|
Mentor: continuation
Whiteboard: [MemShrink:P3] [mentor=mccr8] → [MemShrink:P3]
Updated•11 years ago
|
Assignee: nobody → neocorp64
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8444113 -
Flags: review?(continuation)
| Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8444113 [details] [diff] [review]
call cairo_surface_destroy in case of failure
Review of attachment 8444113 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me, but I'm going to forward the review to a graphics peer.
Attachment #8444113 -
Flags: review?(continuation) → review?(bas)
| Reporter | ||
Comment 4•11 years ago
|
||
Updated•11 years ago
|
Attachment #8444113 -
Flags: review?(bas) → review+
| Reporter | ||
Comment 5•11 years ago
|
||
Thanks for the patch!
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b483618e693
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•7 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•