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
a5fdea0e
Commit
a5fdea0e
authored
Sep 14, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
janitorial: Remove two fresh redundant NULL checks before HeapFree(). Found by Smatch.
parent
cfd561f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
shlfileop.c
dlls/shell32/shlfileop.c
+1
-2
surface.c
dlls/wined3d/surface.c
+1
-1
No files found.
dlls/shell32/shlfileop.c
View file @
a5fdea0e
...
...
@@ -1753,8 +1753,7 @@ HRESULT WINAPI SHPathPrepareForWriteW(HWND hwnd, IUnknown *modless, LPCWSTR path
/* check if we can access the directory */
res
=
GetFileAttributesW
(
realpath
);
if
(
temppath
)
HeapFree
(
GetProcessHeap
(),
0
,
temppath
);
HeapFree
(
GetProcessHeap
(),
0
,
temppath
);
if
(
res
==
INVALID_FILE_ATTRIBUTES
)
{
...
...
dlls/wined3d/surface.c
View file @
a5fdea0e
...
...
@@ -796,7 +796,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED
checkGLcall
(
"glBindBufferARB"
);
/* We don't need the system memory anymore and we can't even use it for PBOs */
if
(
This
->
resource
.
allocatedMemory
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
resource
.
allocatedMemory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
resource
.
allocatedMemory
);
This
->
resource
.
allocatedMemory
=
NULL
;
This
->
Flags
|=
SFLAG_PBO
;
LEAVE_GL
();
...
...
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