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

Unified Diff: Source/platform/graphics/GraphicsContextState.cpp

Issue 335613002: Fix memory leak in GraphicsContextState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContextState.cpp
diff --git a/Source/platform/graphics/GraphicsContextState.cpp b/Source/platform/graphics/GraphicsContextState.cpp
index 6ec377303f990cee13539c4002cf11c00ae85a2e..2084636f46e1684146fbb0a53dfc97447c05ee02 100644
--- a/Source/platform/graphics/GraphicsContextState.cpp
+++ b/Source/platform/graphics/GraphicsContextState.cpp
@@ -59,6 +59,7 @@ GraphicsContextState::GraphicsContextState(const GraphicsContextState& other)
void GraphicsContextState::copy(const GraphicsContextState& source)
{
+ this->~GraphicsContextState();
jbroman 2014/06/12 13:43:07 Wouldn't it be more straightforward to just make t
Dominik Grewe 2014/06/12 13:50:19 We mainly did this to avoid code duplication. But
new (this) GraphicsContextState(source);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698