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
a8752003
Commit
a8752003
authored
May 10, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
parent
9d4960bf
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
46 additions
and
92 deletions
+46
-92
registry.c
dlls/advapi32/registry.c
+4
-4
security.c
dlls/advapi32/security.c
+1
-3
api.c
dlls/avifil32/api.c
+2
-5
avifile.c
dlls/avifil32/avifile.c
+1
-2
editstream.c
dlls/avifil32/editstream.c
+1
-2
device_opengl.c
dlls/ddraw/device_opengl.c
+1
-1
surface_main.c
dlls/ddraw/surface_main.c
+1
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-2
internal.c
dlls/msacm32/internal.c
+1
-1
hlink.c
dlls/mshtml/hlink.c
+1
-2
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+4
-8
wgl.c
dlls/opengl32/wgl.c
+1
-3
wgl_ext.c
dlls/opengl32/wgl_ext.c
+1
-1
writer.c
dlls/riched20/writer.c
+2
-4
secur32.c
dlls/secur32/secur32.c
+2
-3
main.c
dlls/secur32/tests/main.c
+3
-6
thunks.c
dlls/secur32/thunks.c
+4
-8
umon.c
dlls/urlmon/umon.c
+2
-4
query.c
dlls/wined3d/query.c
+1
-3
internet.c
dlls/wininet/internet.c
+1
-2
urlcache.c
dlls/wininet/urlcache.c
+0
-1
audio.c
dlls/winmm/winealsa/audio.c
+4
-9
audio.c
dlls/winmm/wineesd/audio.c
+2
-6
xrender.c
dlls/x11drv/xrender.c
+1
-2
treeview.c
programs/regedit/treeview.c
+1
-2
wineboot.c
programs/wineboot/wineboot.c
+1
-2
audio.c
programs/winecfg/audio.c
+2
-5
No files found.
dlls/advapi32/registry.c
View file @
a8752003
...
...
@@ -1455,7 +1455,7 @@ LONG WINAPI RegGetValueW( HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue,
(
dwType
==
REG_EXPAND_SZ
&&
!
(
dwFlags
&
RRF_NOEXPAND
)))
{
do
{
if
(
pvBuf
)
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
pvBuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cbData
);
if
(
!
pvBuf
)
...
...
@@ -1494,7 +1494,7 @@ LONG WINAPI RegGetValueW( HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue,
CopyMemory
(
pvData
,
pvBuf
,
*
pcbData
);
}
if
(
pvBuf
)
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
}
if
(
pszSubKey
&&
pszSubKey
[
0
])
...
...
@@ -1547,7 +1547,7 @@ LONG WINAPI RegGetValueA( HKEY hKey, LPCSTR pszSubKey, LPCSTR pszValue,
(
dwType
==
REG_EXPAND_SZ
&&
!
(
dwFlags
&
RRF_NOEXPAND
)))
{
do
{
if
(
pvBuf
)
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
pvBuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cbData
);
if
(
!
pvBuf
)
...
...
@@ -1586,7 +1586,7 @@ LONG WINAPI RegGetValueA( HKEY hKey, LPCSTR pszSubKey, LPCSTR pszValue,
CopyMemory
(
pvData
,
pvBuf
,
*
pcbData
);
}
if
(
pvBuf
)
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
pvBuf
);
}
if
(
pszSubKey
&&
pszSubKey
[
0
])
...
...
dlls/advapi32/security.c
View file @
a8752003
...
...
@@ -1841,9 +1841,7 @@ LookupAccountNameA(
RtlFreeUnicodeString
(
&
lpSystemW
);
RtlFreeUnicodeString
(
&
lpAccountW
);
if
(
lpReferencedDomainNameW
)
HeapFree
(
GetProcessHeap
(),
0
,
lpReferencedDomainNameW
);
HeapFree
(
GetProcessHeap
(),
0
,
lpReferencedDomainNameW
);
return
ret
;
}
...
...
dlls/avifil32/api.c
View file @
a8752003
...
...
@@ -1284,9 +1284,7 @@ static BOOL AVISaveOptionsFmtChoose(HWND hWnd)
if
(
ret
==
S_OK
)
pOptions
->
dwFlags
|=
AVICOMPRESSF_VALID
;
if
(
afmtc
.
pwfxEnum
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
afmtc
.
pwfxEnum
);
HeapFree
(
GetProcessHeap
(),
0
,
afmtc
.
pwfxEnum
);
return
(
ret
==
S_OK
?
TRUE
:
FALSE
);
}
else
{
ERR
(
": unknown streamtype 0x%08lX
\n
"
,
sInfo
.
fccType
);
...
...
@@ -2007,8 +2005,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler,
}
error:
if
(
lpBuffer
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
if
(
pfile
!=
NULL
)
{
for
(
curStream
=
0
;
curStream
<
nStreams
;
curStream
++
)
{
if
(
pOutStreams
[
curStream
]
!=
NULL
)
...
...
dlls/avifil32/avifile.c
View file @
a8752003
...
...
@@ -1964,8 +1964,7 @@ static HRESULT AVIFILE_LoadIndex(IAVIFileImpl *This, DWORD size, DWORD offset)
pos
,
&
bAbsolute
);
}
if
(
lp
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
lp
);
HeapFree
(
GetProcessHeap
(),
0
,
lp
);
/* checking ... */
for
(
n
=
0
;
n
<
This
->
fInfo
.
dwStreams
;
n
++
)
{
...
...
dlls/avifil32/editstream.c
View file @
a8752003
...
...
@@ -340,8 +340,7 @@ static BOOL AVIFILE_FormatsEqual(PAVISTREAM avi1, PAVISTREAM avi2)
}
}
if
(
fmt2
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
fmt2
);
HeapFree
(
GetProcessHeap
(),
0
,
fmt2
);
HeapFree
(
GetProcessHeap
(),
0
,
fmt1
);
return
status
;
...
...
dlls/ddraw/device_opengl.c
View file @
a8752003
...
...
@@ -3821,7 +3821,7 @@ static void d3ddevice_lock_update(IDirectDrawSurfaceImpl* This, LPCRECT pRect, D
buffer_color
,
buffer_format
,
dst
);
if
(
current_width
>
buffer_width
)
{
if
(
buffer
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
buffer_width
=
current_width
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buffer_width
);
}
...
...
dlls/ddraw/surface_main.c
View file @
a8752003
...
...
@@ -110,7 +110,7 @@ static void Main_DirectDrawSurface_Destroy(IDirectDrawSurfaceImpl* This)
}
This
->
final_release
(
This
);
if
(
This
->
private
!=
This
+
1
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
private
);
if
(
This
->
tex_private
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
tex_private
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
tex_private
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/iphlpapi/iphlpapi_main.c
View file @
a8752003
...
...
@@ -755,8 +755,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
}
else
ret
=
ERROR_OUTOFMEMORY
;
if
(
ipAddrTable
)
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
}
}
else
...
...
dlls/msacm32/internal.c
View file @
a8752003
...
...
@@ -635,7 +635,7 @@ static void MSACM_ReorderDriversByPriority(void)
errCleanUp:
if
(
hPriorityKey
!=
NULL
)
RegCloseKey
(
hPriorityKey
);
if
(
driverList
!=
NULL
)
HeapFree
(
MSACM_hHeap
,
0
,
driverList
);
HeapFree
(
MSACM_hHeap
,
0
,
driverList
);
}
/***********************************************************************
...
...
dlls/mshtml/hlink.c
View file @
a8752003
...
...
@@ -211,8 +211,7 @@ static HRESULT WINAPI Hlink_SetMonikerReference(IHlink *iface, DWORD grfHLSETF,
if
(
This
->
mon
)
IMoniker_Release
(
This
->
mon
);
if
(
This
->
location
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
location
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
location
);
if
(
pimkTarget
)
IMoniker_AddRef
(
pimkTarget
);
...
...
dlls/msvfw32/msvideo_main.c
View file @
a8752003
...
...
@@ -1437,14 +1437,10 @@ void VFWAPI ICSeqCompressFrameEnd(PCOMPVARS pc)
TRACE
(
"(%p)
\n
"
,
pc
);
ret
=
ICSendMessage
(
pc
->
hic
,
ICM_COMPRESS_END
,
0
,
0
);
TRACE
(
" -- %lx"
,
ret
);
if
(
pc
->
lpbiIn
)
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
if
(
pc
->
lpBitsPrev
)
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
if
(
pc
->
lpBitsOut
)
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsOut
);
if
(
pc
->
lpState
)
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpState
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsOut
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpState
);
pc
->
lpbiIn
=
pc
->
lpBitsPrev
=
pc
->
lpBitsOut
=
pc
->
lpState
=
NULL
;
}
...
...
dlls/opengl32/wgl.c
View file @
a8752003
...
...
@@ -1336,9 +1336,7 @@ static void process_detach(void)
/* Do not leak memory... */
wgl_ext_finalize_extensions
();
if
(
NULL
!=
internal_gl_extensions
)
{
HeapFree
(
GetProcessHeap
(),
0
,
internal_gl_extensions
);
}
HeapFree
(
GetProcessHeap
(),
0
,
internal_gl_extensions
);
}
/***********************************************************************
...
...
dlls/opengl32/wgl_ext.c
View file @
a8752003
...
...
@@ -1078,7 +1078,7 @@ HPBUFFERARB WINAPI wglCreatePbufferARB(HDC hdc, int iPixelFormat, int iWidth, in
create_failed:
if
(
NULL
!=
cfgs
)
XFree
(
cfgs
);
if
(
NULL
!=
object
)
HeapFree
(
GetProcessHeap
(),
0
,
object
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
TRACE
(
"->(FAILED)
\n
"
);
return
(
HPBUFFERARB
)
NULL
;
}
...
...
dlls/riched20/writer.c
View file @
a8752003
...
...
@@ -782,8 +782,7 @@ ME_StreamOutText(ME_TextEditor *editor, ME_OutStream *pStream, int nStart, int n
nSize
=
WideCharToMultiByte
(
nCodePage
,
0
,
item
->
member
.
run
.
strText
->
szData
+
nStart
,
nLen
,
NULL
,
0
,
NULL
,
NULL
);
if
(
nSize
>
nBufLen
)
{
if
(
buffer
)
FREE_OBJ
(
buffer
);
FREE_OBJ
(
buffer
);
buffer
=
ALLOC_N_OBJ
(
char
,
nSize
);
nBufLen
=
nSize
;
}
...
...
@@ -800,8 +799,7 @@ ME_StreamOutText(ME_TextEditor *editor, ME_OutStream *pStream, int nStart, int n
item
=
ME_FindItemFwd
(
item
,
diRun
);
}
if
(
buffer
)
FREE_OBJ
(
buffer
);
FREE_OBJ
(
buffer
);
return
success
;
}
...
...
dlls/secur32/secur32.c
View file @
a8752003
...
...
@@ -666,8 +666,7 @@ static void SECUR32_freeProviders(void)
{
LIST_FOR_EACH_ENTRY
(
provider
,
&
providerTable
->
table
,
SecureProvider
,
entry
)
{
if
(
provider
->
moduleName
)
SECUR32_FREE
(
provider
->
moduleName
);
SECUR32_FREE
(
provider
->
moduleName
);
if
(
provider
->
lib
)
FreeLibrary
(
provider
->
lib
);
}
...
...
@@ -689,7 +688,7 @@ static void SECUR32_freeProviders(void)
*/
SECURITY_STATUS
WINAPI
FreeContextBuffer
(
PVOID
pv
)
{
if
(
pv
)
SECUR32_FREE
(
pv
);
SECUR32_FREE
(
pv
);
return
SEC_E_OK
;
}
...
...
dlls/secur32/tests/main.c
View file @
a8752003
...
...
@@ -162,12 +162,9 @@ SECURITY_STATUS setupClient(PCredHandle cred, const char *user,
if
(
identity
!=
NULL
)
{
if
(
identity
->
Domain
!=
0
)
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
Domain
);
if
(
identity
->
User
!=
0
)
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
User
);
if
(
identity
->
Password
!=
0
)
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
Password
);
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
Domain
);
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
User
);
HeapFree
(
GetProcessHeap
(),
0
,
identity
->
Password
);
HeapFree
(
GetProcessHeap
(),
0
,
identity
);
}
...
...
dlls/secur32/thunks.c
View file @
a8752003
...
...
@@ -77,10 +77,8 @@ SECURITY_STATUS SEC_ENTRY thunk_AcquireCredentialsHandleW(
ret
=
AcquireCredentialsHandleA
(
principal
,
package
,
fCredentialsUse
,
pvLogonID
,
pAuthData
,
pGetKeyFn
,
pvGetKeyArgument
,
phCredential
,
ptsExpiry
);
if
(
principal
)
SECUR32_FREE
(
principal
);
if
(
package
)
SECUR32_FREE
(
package
);
SECUR32_FREE
(
principal
);
SECUR32_FREE
(
package
);
}
else
ret
=
SEC_E_SECPKG_NOT_FOUND
;
...
...
@@ -262,8 +260,7 @@ SECURITY_STATUS SEC_ENTRY thunk_InitializeSecurityContextW(
phCredential
,
phContext
,
target
,
fContextReq
,
Reserved1
,
TargetDataRep
,
pInput
,
Reserved2
,
phNewContext
,
pOutput
,
pfContextAttr
,
ptsExpiry
);
if
(
target
)
SECUR32_FREE
(
target
);
SECUR32_FREE
(
target
);
}
else
ret
=
SEC_E_UNSUPPORTED_FUNCTION
;
...
...
@@ -898,7 +895,6 @@ SECURITY_STATUS SEC_ENTRY thunk_ImportSecurityContextW(
TRACE
(
"%s %p %p %p
\n
"
,
debugstr_w
(
pszPackage
),
pPackedContext
,
Token
,
phContext
);
ret
=
ImportSecurityContextA
(
package
,
pPackedContext
,
Token
,
phContext
);
if
(
package
)
SECUR32_FREE
(
package
);
SECUR32_FREE
(
package
);
return
ret
;
}
dlls/urlmon/umon.c
View file @
a8752003
...
...
@@ -737,10 +737,8 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName,
Binding_CloseCacheDownload
(
bind
);
Binding_FinishedDownload
(
bind
,
hres
);
if
(
user
)
HeapFree
(
GetProcessHeap
(),
0
,
user
);
if
(
pass
)
HeapFree
(
GetProcessHeap
(),
0
,
pass
);
HeapFree
(
GetProcessHeap
(),
0
,
user
);
HeapFree
(
GetProcessHeap
(),
0
,
pass
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
HeapFree
(
GetProcessHeap
(),
0
,
host
);
HeapFree
(
GetProcessHeap
(),
0
,
urlcopy
);
...
...
dlls/wined3d/query.c
View file @
a8752003
...
...
@@ -60,9 +60,7 @@ ULONG WINAPI IWineD3DQueryImpl_Release(IWineD3DQuery *iface) {
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
if
(
This
->
extendedData
!=
NULL
){
HeapFree
(
GetProcessHeap
(),
0
,
This
->
extendedData
);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
extendedData
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
dlls/wininet/internet.c
View file @
a8752003
...
...
@@ -1533,8 +1533,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl_orig, DWORD dwUrlLength_orig, DWOR
debugstr_wn
(
lpUC
->
lpszUrlPath
,
lpUC
->
dwUrlPathLength
),
debugstr_wn
(
lpUC
->
lpszExtraInfo
,
lpUC
->
dwExtraInfoLength
));
if
(
lpszUrl_decode
)
HeapFree
(
GetProcessHeap
(),
0
,
lpszUrl_decode
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszUrl_decode
);
return
TRUE
;
}
...
...
dlls/wininet/urlcache.c
View file @
a8752003
...
...
@@ -2280,7 +2280,6 @@ BOOL WINAPI CommitUrlCacheEntryA(
{
dwError
=
GetLastError
();
}
if
(
original_url
)
HeapFree
(
GetProcessHeap
(),
0
,
original_url
);
}
else
...
...
dlls/winmm/winealsa/audio.c
View file @
a8752003
...
...
@@ -1041,12 +1041,10 @@ static int ALSA_AddCommonDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pcmn
*/
static
void
ALSA_FreeDevice
(
WINE_WAVEDEV
*
ww
)
{
if
(
ww
->
pcmname
)
HeapFree
(
GetProcessHeap
(),
0
,
ww
->
pcmname
);
HeapFree
(
GetProcessHeap
(),
0
,
ww
->
pcmname
);
ww
->
pcmname
=
NULL
;
if
(
ww
->
ctlname
)
HeapFree
(
GetProcessHeap
(),
0
,
ww
->
ctlname
);
HeapFree
(
GetProcessHeap
(),
0
,
ww
->
ctlname
);
ww
->
ctlname
=
NULL
;
}
...
...
@@ -1627,11 +1625,8 @@ LONG ALSA_WaveInit(void)
ALSA_AddUserSpecifiedDevice
(
ctl_name
,
pcm_name
);
}
if
(
ctl_name
)
HeapFree
(
GetProcessHeap
(),
0
,
ctl_name
);
if
(
pcm_name
)
HeapFree
(
GetProcessHeap
(),
0
,
pcm_name
);
HeapFree
(
GetProcessHeap
(),
0
,
ctl_name
);
HeapFree
(
GetProcessHeap
(),
0
,
pcm_name
);
}
if
(
key
)
...
...
dlls/winmm/wineesd/audio.c
View file @
a8752003
...
...
@@ -389,12 +389,8 @@ void ESD_CloseWaveOutDevice(WINE_WAVEOUT* wwo)
wwo
->
esd_fd
=
-
1
;
/* free up the buffer we use for volume and reset the size */
if
(
wwo
->
sound_buffer
)
{
HeapFree
(
GetProcessHeap
(),
0
,
wwo
->
sound_buffer
);
wwo
->
sound_buffer
=
NULL
;
}
HeapFree
(
GetProcessHeap
(),
0
,
wwo
->
sound_buffer
);
wwo
->
sound_buffer
=
NULL
;
wwo
->
buffer_size
=
0
;
}
...
...
dlls/x11drv/xrender.c
View file @
a8752003
...
...
@@ -344,8 +344,7 @@ static void FreeEntry(int entry)
formatEntry
->
realized
=
NULL
;
if
(
formatEntry
->
bitmaps
)
{
for
(
i
=
0
;
i
<
formatEntry
->
nrealized
;
i
++
)
if
(
formatEntry
->
bitmaps
[
i
])
HeapFree
(
GetProcessHeap
(),
0
,
formatEntry
->
bitmaps
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
formatEntry
->
bitmaps
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
formatEntry
->
bitmaps
);
formatEntry
->
bitmaps
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
formatEntry
->
gis
);
...
...
programs/regedit/treeview.c
View file @
a8752003
...
...
@@ -628,8 +628,7 @@ done:
SendMessage
(
hwndTV
,
WM_SETREDRAW
,
TRUE
,
0
);
SetCursor
(
hcursorOld
);
expanding
=
FALSE
;
if
(
keyPath
)
HeapFree
(
GetProcessHeap
(),
0
,
keyPath
);
HeapFree
(
GetProcessHeap
(),
0
,
keyPath
);
return
TRUE
;
}
...
...
programs/wineboot/wineboot.c
View file @
a8752003
...
...
@@ -326,8 +326,7 @@ static BOOL pendingRename(void)
res
=
TRUE
;
end:
if
(
buffer
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
hSession
!=
NULL
)
RegCloseKey
(
hSession
);
...
...
programs/winecfg/audio.c
View file @
a8752003
...
...
@@ -480,11 +480,8 @@ static void findAudioDrivers(void)
HCURSOR
old_cursor
;
/* delete an existing list */
if
(
loadedAudioDrv
)
{
HeapFree
(
GetProcessHeap
(),
0
,
loadedAudioDrv
);
loadedAudioDrv
=
0
;
}
HeapFree
(
GetProcessHeap
(),
0
,
loadedAudioDrv
);
loadedAudioDrv
=
0
;
/* change to the wait cursor because this can take a while if there is a
* misbehaving driver that takes a long time to open
...
...
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