Module: wine Branch: master Commit: ff838008393cf57431013aac84d919e5c18c75d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff838008393cf57431013aac84...
Author: Rob Shearman robertshearman@gmail.com Date: Thu Jun 19 07:51:26 2008 +0100
shell32: Free the correct pointer in XDG_UserDirLookup.
out_ptr is a stack variable. *out_ptr is heap allocated and is what was meant to be freed.
---
dlls/shell32/xdg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c index c578b90..6eb13a2 100644 --- a/dlls/shell32/xdg.c +++ b/dlls/shell32/xdg.c @@ -963,7 +963,7 @@ xdg_user_dir_lookup_error: if (FAILED(hr)) { for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]); - HeapFree(GetProcessHeap(), 0, out_ptr); + HeapFree(GetProcessHeap(), 0, *out_ptr); } return hr; }