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
adccd96c
Commit
adccd96c
authored
Jun 12, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Fix memory leak on error path in session_worker_thread_cb (scan-build).
parent
6ac82b2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
recognizer.c
dlls/windows.media.speech/recognizer.c
+2
-1
No files found.
dlls/windows.media.speech/recognizer.c
View file @
adccd96c
...
...
@@ -193,7 +193,7 @@ static DWORD CALLBACK session_worker_thread_cb( void *args )
struct
session
*
impl
=
impl_from_ISpeechContinuousRecognitionSession
(
iface
);
BOOLEAN
running
=
TRUE
,
paused
=
FALSE
;
UINT32
frame_count
,
tmp_buf_size
;
BYTE
*
audio_buf
,
*
tmp_buf
;
BYTE
*
audio_buf
,
*
tmp_buf
=
NULL
;
DWORD
flags
,
status
;
HANDLE
events
[
2
];
HRESULT
hr
;
...
...
@@ -285,6 +285,7 @@ static DWORD CALLBACK session_worker_thread_cb( void *args )
error:
ERR
(
"The recognition session worker encountered a serious error and needs to stop. hr: %lx.
\n
"
,
hr
);
free
(
tmp_buf
);
return
1
;
}
...
...
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