Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1a7a9473
Commit
1a7a9473
authored
Oct 25, 2002
by
Alberto Massari
Committed by
Alexandre Julliard
Oct 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't touch the This pointer after it has been freed.
parent
0c32905c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
dragdrophelper.c
dlls/shell32/dragdrophelper.c
+3
-2
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+1
-0
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+5
-4
No files found.
dlls/shell32/dragdrophelper.c
View file @
1a7a9473
...
...
@@ -122,8 +122,9 @@ static ULONG WINAPI IDropTargetHelper_fnRelease (IDropTargetHelper * iface)
TRACE
(
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
TRACE
(
"-- destroying (%p)
\n
"
,
This
);
LocalFree
((
HLOCAL
)
This
);
TRACE
(
"-- destroying (%p)
\n
"
,
This
);
LocalFree
((
HLOCAL
)
This
);
return
0
;
}
return
This
->
ref
;
}
...
...
dlls/shell32/shfldr_desktop.c
View file @
1a7a9473
...
...
@@ -172,6 +172,7 @@ static ULONG WINAPI ISF_Desktop_fnRelease (IShellFolder2 * iface)
if
(
This
->
sPathTarget
)
SHFree
(
This
->
sPathTarget
);
LocalFree
((
HLOCAL
)
This
);
return
0
;
}
return
This
->
ref
;
}
...
...
dlls/shell32/shfldr_mycomp.c
View file @
1a7a9473
...
...
@@ -173,10 +173,11 @@ static ULONG WINAPI ISF_MyComputer_fnRelease (IShellFolder2 * iface)
TRACE
(
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
TRACE
(
"-- destroying IShellFolder(%p)
\n
"
,
This
);
if
(
This
->
pidlRoot
)
SHFree
(
This
->
pidlRoot
);
LocalFree
((
HLOCAL
)
This
);
TRACE
(
"-- destroying IShellFolder(%p)
\n
"
,
This
);
if
(
This
->
pidlRoot
)
SHFree
(
This
->
pidlRoot
);
LocalFree
((
HLOCAL
)
This
);
return
0
;
}
return
This
->
ref
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment