Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
8d4e0bc8
Commit
8d4e0bc8
authored
Feb 23, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leaks in tests.
parent
f305dc98
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
1 deletion
+16
-1
tests/test_filtering/ma_test_filtering_bpf.c
tests/test_filtering/ma_test_filtering_bpf.c
+2
-0
tests/test_filtering/ma_test_filtering_dithering.c
tests/test_filtering/ma_test_filtering_dithering.c
+1
-0
tests/test_filtering/ma_test_filtering_hpf.c
tests/test_filtering/ma_test_filtering_hpf.c
+3
-0
tests/test_filtering/ma_test_filtering_loshelf.c
tests/test_filtering/ma_test_filtering_loshelf.c
+3
-1
tests/test_filtering/ma_test_filtering_lpf.c
tests/test_filtering/ma_test_filtering_lpf.c
+3
-0
tests/test_filtering/ma_test_filtering_notch.c
tests/test_filtering/ma_test_filtering_notch.c
+2
-0
tests/test_filtering/ma_test_filtering_peak.c
tests/test_filtering/ma_test_filtering_peak.c
+2
-0
No files found.
tests/test_filtering/ma_test_filtering_bpf.c
View file @
8d4e0bc8
...
@@ -49,6 +49,7 @@ ma_result test_bpf2__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -49,6 +49,7 @@ ma_result test_bpf2__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_bpf4__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -109,6 +110,7 @@ ma_result test_bpf4__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
...
tests/test_filtering/ma_test_filtering_dithering.c
View file @
8d4e0bc8
...
@@ -43,6 +43,7 @@ ma_result test_dithering__u8(const char* pInputFilePath)
...
@@ -43,6 +43,7 @@ ma_result test_dithering__u8(const char* pInputFilePath)
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
...
tests/test_filtering/ma_test_filtering_hpf.c
View file @
8d4e0bc8
...
@@ -49,6 +49,7 @@ ma_result test_hpf1__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -49,6 +49,7 @@ ma_result test_hpf1__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_hpf2__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -109,6 +110,7 @@ ma_result test_hpf2__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -169,6 +171,7 @@ ma_result test_hpf3__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -169,6 +171,7 @@ ma_result test_hpf3__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
...
tests/test_filtering/ma_test_filtering_loshelf.c
View file @
8d4e0bc8
...
@@ -19,7 +19,7 @@ ma_result test_loshelf2__by_format(const char* pInputFilePath, const char* pOutp
...
@@ -19,7 +19,7 @@ ma_result test_loshelf2__by_format(const char* pInputFilePath, const char* pOutp
return
result
;
return
result
;
}
}
loshelfConfig
=
ma_loshelf2_config_init
(
decoder
.
outputFormat
,
decoder
.
outputChannels
,
decoder
.
outputSampleRate
,
6
,
1
,
10
00
);
loshelfConfig
=
ma_loshelf2_config_init
(
decoder
.
outputFormat
,
decoder
.
outputChannels
,
decoder
.
outputSampleRate
,
6
,
1
,
2
00
);
result
=
ma_loshelf2_init
(
&
loshelfConfig
,
&
loshelf
);
result
=
ma_loshelf2_init
(
&
loshelfConfig
,
&
loshelf
);
if
(
result
!=
MA_SUCCESS
)
{
if
(
result
!=
MA_SUCCESS
)
{
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
...
@@ -49,6 +49,7 @@ ma_result test_loshelf2__by_format(const char* pInputFilePath, const char* pOutp
...
@@ -49,6 +49,7 @@ ma_result test_loshelf2__by_format(const char* pInputFilePath, const char* pOutp
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_loshelf4__by_format(const char* pInputFilePath, const char* pOutp
...
@@ -109,6 +110,7 @@ ma_result test_loshelf4__by_format(const char* pInputFilePath, const char* pOutp
}
}
}
}
ma_decoder_uninit(&decoder);
ma_encoder_uninit(&encoder);
ma_encoder_uninit(&encoder);
return MA_SUCCESS;
return MA_SUCCESS;
}
}
...
...
tests/test_filtering/ma_test_filtering_lpf.c
View file @
8d4e0bc8
...
@@ -49,6 +49,7 @@ ma_result test_lpf1__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -49,6 +49,7 @@ ma_result test_lpf1__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -109,6 +110,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -170,6 +172,7 @@ ma_result test_lpf3__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -170,6 +172,7 @@ ma_result test_lpf3__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
...
tests/test_filtering/ma_test_filtering_notch.c
View file @
8d4e0bc8
...
@@ -49,6 +49,7 @@ ma_result test_notch2__by_format(const char* pInputFilePath, const char* pOutput
...
@@ -49,6 +49,7 @@ ma_result test_notch2__by_format(const char* pInputFilePath, const char* pOutput
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_notch4__by_format(const char* pInputFilePath, const char* pOutput
...
@@ -109,6 +110,7 @@ ma_result test_notch4__by_format(const char* pInputFilePath, const char* pOutput
}
}
}
}
ma_decoder_uninit(&decoder);
ma_encoder_uninit(&encoder);
ma_encoder_uninit(&encoder);
return MA_SUCCESS;
return MA_SUCCESS;
}
}
...
...
tests/test_filtering/ma_test_filtering_peak.c
View file @
8d4e0bc8
...
@@ -49,6 +49,7 @@ ma_result test_peak2__by_format(const char* pInputFilePath, const char* pOutputF
...
@@ -49,6 +49,7 @@ ma_result test_peak2__by_format(const char* pInputFilePath, const char* pOutputF
}
}
}
}
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
}
}
...
@@ -109,6 +110,7 @@ ma_result test_peak4__by_format(const char* pInputFilePath, const char* pOutputF
...
@@ -109,6 +110,7 @@ ma_result test_peak4__by_format(const char* pInputFilePath, const char* pOutputF
}
}
}
}
ma_decoder_uninit(&decoder);
ma_encoder_uninit(&encoder);
ma_encoder_uninit(&encoder);
return MA_SUCCESS;
return MA_SUCCESS;
}
}
...
...
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