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

Unified Diff: views/widget/native_widget_win.cc

Issue 7806010: Fix small memory leak on SysAllocString. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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: views/widget/native_widget_win.cc
diff --git a/views/widget/native_widget_win.cc b/views/widget/native_widget_win.cc
index 2701173b5c6ef64b69a01748a44ea03c91cc1f1f..1abb872136f5c5f29a18e346a86aa40b52cae844 100644
--- a/views/widget/native_widget_win.cc
+++ b/views/widget/native_widget_win.cc
@@ -697,6 +697,7 @@ void NativeWidgetWin::SetAccessibleName(const std::wstring& name) {
var.bstrVal = SysAllocString(name.c_str());
hr = pAccPropServices->SetHwndProp(GetNativeView(), OBJID_CLIENT,
sky 2011/08/30 15:35:23 Could we simplify this to SetHwndPropStr(..., name
CHILDID_SELF, PROPID_ACC_NAME, var);
+ SysFreeString(var.bstrVal);
}
}
« 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