Chromium Code Reviews
Descriptiongfx::Image: AddRepresentation takes a scoped_ptr, not a raw ptr.
This is just a small cleanup which makes ownership clearer. Because
AddRepresentation is going to retain ownership of the ImageRep argument,
it should accept it as a scoped_ptr.
Updated callers.
Committed: https://crrev.com/a98a4db15b9affbd2d03cd8a2809ca2f0c1fdbac
Cr-Commit-Position: refs/heads/master@{#326005}
Patch Set 1 #Patch Set 2 : Fix potential null dereference (use after release). #
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||