Commit 1a7a9473 authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard

Don't touch the This pointer after it has been freed.

parent 0c32905c
...@@ -122,8 +122,9 @@ static ULONG WINAPI IDropTargetHelper_fnRelease (IDropTargetHelper * iface) ...@@ -122,8 +122,9 @@ static ULONG WINAPI IDropTargetHelper_fnRelease (IDropTargetHelper * iface)
TRACE ("(%p)->(count=%lu)\n", This, This->ref); TRACE ("(%p)->(count=%lu)\n", This, This->ref);
if (!--(This->ref)) { if (!--(This->ref)) {
TRACE ("-- destroying (%p)\n", This); TRACE("-- destroying (%p)\n", This);
LocalFree ((HLOCAL) This); LocalFree ((HLOCAL) This);
return 0;
} }
return This->ref; return This->ref;
} }
......
...@@ -172,6 +172,7 @@ static ULONG WINAPI ISF_Desktop_fnRelease (IShellFolder2 * iface) ...@@ -172,6 +172,7 @@ static ULONG WINAPI ISF_Desktop_fnRelease (IShellFolder2 * iface)
if (This->sPathTarget) if (This->sPathTarget)
SHFree (This->sPathTarget); SHFree (This->sPathTarget);
LocalFree ((HLOCAL) This); LocalFree ((HLOCAL) This);
return 0;
} }
return This->ref; return This->ref;
} }
......
...@@ -177,6 +177,7 @@ static ULONG WINAPI ISF_MyComputer_fnRelease (IShellFolder2 * iface) ...@@ -177,6 +177,7 @@ static ULONG WINAPI ISF_MyComputer_fnRelease (IShellFolder2 * iface)
if (This->pidlRoot) if (This->pidlRoot)
SHFree (This->pidlRoot); SHFree (This->pidlRoot);
LocalFree ((HLOCAL) This); LocalFree ((HLOCAL) This);
return 0;
} }
return This->ref; return This->ref;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment