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
b907b7d6
Commit
b907b7d6
authored
Jan 22, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix a parent PIDL leak (Valgrind).
parent
33389354
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
brsfolder.c
dlls/shell32/brsfolder.c
+5
-0
No files found.
dlls/shell32/brsfolder.c
View file @
b907b7d6
...
...
@@ -229,6 +229,7 @@ static void InitializeTreeView( browse_info *info )
if
(
FAILED
(
hr
))
{
WARN
(
"SHGetDesktopFolder failed! hr = %08x
\n
"
,
hr
);
ILFree
(
pidlChild
);
ILFree
(
pidlParent
);
return
;
}
hr
=
IShellFolder_BindToObject
(
lpsfDesktop
,
pidlParent
,
0
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
lpsfParent
);
...
...
@@ -238,6 +239,7 @@ static void InitializeTreeView( browse_info *info )
if
(
FAILED
(
hr
))
{
WARN
(
"Could not bind to parent shell folder! hr = %08x
\n
"
,
hr
);
ILFree
(
pidlChild
);
ILFree
(
pidlParent
);
return
;
}
...
...
@@ -252,6 +254,7 @@ static void InitializeTreeView( browse_info *info )
WARN
(
"Could not bind to root shell folder! hr = %08x
\n
"
,
hr
);
IShellFolder_Release
(
lpsfParent
);
ILFree
(
pidlChild
);
ILFree
(
pidlParent
);
return
;
}
...
...
@@ -262,6 +265,7 @@ static void InitializeTreeView( browse_info *info )
IShellFolder_Release
(
lpsfParent
);
IShellFolder_Release
(
lpsfRoot
);
ILFree
(
pidlChild
);
ILFree
(
pidlParent
);
return
;
}
...
...
@@ -271,6 +275,7 @@ static void InitializeTreeView( browse_info *info )
SendMessageW
(
info
->
hwndTreeView
,
TVM_EXPAND
,
TVE_EXPAND
,
(
LPARAM
)
item
);
ILFree
(
pidlChild
);
ILFree
(
pidlParent
);
IShellFolder_Release
(
lpsfRoot
);
IShellFolder_Release
(
lpsfParent
);
}
...
...
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