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
c38342a9
Commit
c38342a9
authored
Jul 16, 2002
by
Juergen Schmied
Committed by
Alexandre Julliard
Jul 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a memory leak and a wrong memory free call.
parent
41fc7e5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
filedlg95.c
dlls/commdlg/filedlg95.c
+2
-1
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+5
-2
No files found.
dlls/commdlg/filedlg95.c
View file @
c38342a9
...
@@ -2384,7 +2384,7 @@ static int FILEDLG95_LOOKIN_AddItem(HWND hwnd,LPITEMIDLIST pidl, int iInsertId)
...
@@ -2384,7 +2384,7 @@ static int FILEDLG95_LOOKIN_AddItem(HWND hwnd,LPITEMIDLIST pidl, int iInsertId)
tmpFolder
->
m_iIndent
++
;
tmpFolder
->
m_iIndent
++
;
}
}
tmpFolder
->
pidlItem
=
COMDLG32_PIDL_ILClone
(
pidl
);
/* FIXME: memory leak*/
tmpFolder
->
pidlItem
=
COMDLG32_PIDL_ILClone
(
pidl
);
if
(
tmpFolder
->
m_iIndent
>
liInfos
->
iMaxIndentation
)
if
(
tmpFolder
->
m_iIndent
>
liInfos
->
iMaxIndentation
)
liInfos
->
iMaxIndentation
=
tmpFolder
->
m_iIndent
;
liInfos
->
iMaxIndentation
=
tmpFolder
->
m_iIndent
;
...
@@ -2420,6 +2420,7 @@ static int FILEDLG95_LOOKIN_AddItem(HWND hwnd,LPITEMIDLIST pidl, int iInsertId)
...
@@ -2420,6 +2420,7 @@ static int FILEDLG95_LOOKIN_AddItem(HWND hwnd,LPITEMIDLIST pidl, int iInsertId)
return
iItemID
;
return
iItemID
;
}
}
COMDLG32_SHFree
(
tmpFolder
->
pidlItem
);
MemFree
(
tmpFolder
);
MemFree
(
tmpFolder
);
return
-
1
;
return
-
1
;
...
...
dlls/commdlg/filedlgbrowser.c
View file @
c38342a9
...
@@ -228,7 +228,7 @@ ULONG WINAPI IShellBrowserImpl_Release(IShellBrowser * iface)
...
@@ -228,7 +228,7 @@ ULONG WINAPI IShellBrowserImpl_Release(IShellBrowser * iface)
if
(
!--
(
This
->
ref
))
if
(
!--
(
This
->
ref
))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
COMDLG32_SHFree
(
This
);
TRACE
(
"-- destroyed
\n
"
);
TRACE
(
"-- destroyed
\n
"
);
return
0
;
return
0
;
}
}
...
@@ -306,7 +306,10 @@ HRESULT WINAPI IShellBrowserImpl_BrowseObject(IShellBrowser *iface,
...
@@ -306,7 +306,10 @@ HRESULT WINAPI IShellBrowserImpl_BrowseObject(IShellBrowser *iface,
ICOM_THIS
(
IShellBrowserImpl
,
iface
);
ICOM_THIS
(
IShellBrowserImpl
,
iface
);
TRACE
(
"(%p)(%p,0x%08x)
\n
"
,
This
,
pidl
,
wFlags
);
TRACE
(
"(%p)(pidl=%p,flags=0x%08x(%s))
\n
"
,
This
,
pidl
,
wFlags
,
(
wFlags
&
SBSP_RELATIVE
)
?
"SBSP_RELATIVE"
:
(
wFlags
&
SBSP_PARENT
)
?
"SBSP_PARENT"
:
(
wFlags
&
SBSP_ABSOLUTE
)
?
"SBSP_ABSOLUTE"
:
"SBPS_????"
);
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
This
->
hwndOwner
,
FileOpenDlgInfosStr
);
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
This
->
hwndOwner
,
FileOpenDlgInfosStr
);
...
...
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