Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
757ee19c
Commit
757ee19c
authored
Aug 09, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
janitorial: Removed the rest of the redundant NULL checks before HeapFree.
parent
b40f4c0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
15 deletions
+8
-15
main.c
dlls/ddraw/main.c
+1
-1
font.c
dlls/gdi/font.c
+1
-1
misc.c
dlls/setupapi/misc.c
+1
-2
stringtable.c
dlls/setupapi/stringtable.c
+5
-11
No files found.
dlls/ddraw/main.c
View file @
757ee19c
...
@@ -313,7 +313,7 @@ err_out:
...
@@ -313,7 +313,7 @@ err_out:
/* Let's hope we never need this ;) */
/* Let's hope we never need this ;) */
if
(
wineD3DDevice
)
IWineD3DDevice_Release
(
wineD3DDevice
);
if
(
wineD3DDevice
)
IWineD3DDevice_Release
(
wineD3DDevice
);
if
(
wineD3D
)
IWineD3D_Release
(
wineD3D
);
if
(
wineD3D
)
IWineD3D_Release
(
wineD3D
);
if
(
This
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
hr
;
return
hr
;
}
}
...
...
dlls/gdi/font.c
View file @
757ee19c
...
@@ -1243,7 +1243,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
...
@@ -1243,7 +1243,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
if
(
lpnFit
)
if
(
lpnFit
)
*
lpnFit
=
nFit
;
*
lpnFit
=
nFit
;
if
(
dxs
&&
!
alpDx
)
if
(
!
alpDx
)
HeapFree
(
GetProcessHeap
(),
0
,
dxs
);
HeapFree
(
GetProcessHeap
(),
0
,
dxs
);
GDI_ReleaseObj
(
hdc
);
GDI_ReleaseObj
(
hdc
);
...
...
dlls/setupapi/misc.c
View file @
757ee19c
...
@@ -767,8 +767,7 @@ DWORD WINAPI TakeOwnershipOfFile(LPCWSTR lpFileName)
...
@@ -767,8 +767,7 @@ DWORD WINAPI TakeOwnershipOfFile(LPCWSTR lpFileName)
fail:
;
fail:
;
dwError
=
GetLastError
();
dwError
=
GetLastError
();
if
(
pOwner
!=
NULL
)
MyFree
(
pOwner
);
MyFree
(
pOwner
);
if
(
hToken
!=
NULL
)
if
(
hToken
!=
NULL
)
CloseHandle
(
hToken
);
CloseHandle
(
hToken
);
...
...
dlls/setupapi/stringtable.c
View file @
757ee19c
...
@@ -172,18 +172,12 @@ StringTableDestroy(HSTRING_TABLE hStringTable)
...
@@ -172,18 +172,12 @@ StringTableDestroy(HSTRING_TABLE hStringTable)
{
{
for
(
i
=
0
;
i
<
pStringTable
->
dwMaxSlots
;
i
++
)
for
(
i
=
0
;
i
<
pStringTable
->
dwMaxSlots
;
i
++
)
{
{
if
(
pStringTable
->
pSlots
[
i
].
pString
!=
NULL
)
MyFree
(
pStringTable
->
pSlots
[
i
].
pString
);
{
pStringTable
->
pSlots
[
i
].
pString
=
NULL
;
MyFree
(
pStringTable
->
pSlots
[
i
].
pString
);
pStringTable
->
pSlots
[
i
].
pString
=
NULL
;
}
if
(
pStringTable
->
pSlots
[
i
].
pData
!=
NULL
)
MyFree
(
pStringTable
->
pSlots
[
i
].
pData
);
{
pStringTable
->
pSlots
[
i
].
pData
=
NULL
;
MyFree
(
pStringTable
->
pSlots
[
i
].
pData
);
pStringTable
->
pSlots
[
i
].
dwSize
=
0
;
pStringTable
->
pSlots
[
i
].
pData
=
NULL
;
pStringTable
->
pSlots
[
i
].
dwSize
=
0
;
}
}
}
MyFree
(
pStringTable
->
pSlots
);
MyFree
(
pStringTable
->
pSlots
);
...
...
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