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
6e1cd416
Commit
6e1cd416
authored
Aug 19, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix memory leak in filtering and generation tests
parent
78cdb9c1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
0 deletions
+13
-0
tests/filtering/filtering_bpf.c
tests/filtering/filtering_bpf.c
+2
-0
tests/filtering/filtering_hishelf.c
tests/filtering/filtering_hishelf.c
+1
-0
tests/filtering/filtering_hpf.c
tests/filtering/filtering_hpf.c
+3
-0
tests/filtering/filtering_loshelf.c
tests/filtering/filtering_loshelf.c
+1
-0
tests/filtering/filtering_lpf.c
tests/filtering/filtering_lpf.c
+3
-0
tests/filtering/filtering_notch.c
tests/filtering/filtering_notch.c
+1
-0
tests/filtering/filtering_peak.c
tests/filtering/filtering_peak.c
+1
-0
tests/generation/generation_noise.c
tests/generation/generation_noise.c
+1
-0
No files found.
tests/filtering/filtering_bpf.c
View file @
6e1cd416
...
@@ -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_bpf2_uninit
(
&
bpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
@@ -110,6 +111,7 @@ ma_result test_bpf4__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -110,6 +111,7 @@ ma_result test_bpf4__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_bpf_uninit
(
&
bpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_hishelf.c
View file @
6e1cd416
...
@@ -49,6 +49,7 @@ ma_result test_hishelf2__by_format(const char* pInputFilePath, const char* pOutp
...
@@ -49,6 +49,7 @@ ma_result test_hishelf2__by_format(const char* pInputFilePath, const char* pOutp
}
}
}
}
ma_hishelf2_uninit
(
&
hishelf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_hpf.c
View file @
6e1cd416
...
@@ -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_hpf1_uninit
(
&
hpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
@@ -110,6 +111,7 @@ ma_result test_hpf2__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -110,6 +111,7 @@ ma_result test_hpf2__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_hpf2_uninit
(
&
hpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
@@ -171,6 +173,7 @@ ma_result test_hpf3__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -171,6 +173,7 @@ ma_result test_hpf3__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_hpf_uninit
(
&
hpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_loshelf.c
View file @
6e1cd416
...
@@ -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_loshelf2_uninit
(
&
loshelf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_lpf.c
View file @
6e1cd416
...
@@ -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_lpf1_uninit
(
&
lpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
@@ -110,6 +111,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -110,6 +111,7 @@ ma_result test_lpf2__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_lpf2_uninit
(
&
lpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
@@ -172,6 +174,7 @@ ma_result test_lpf3__by_format(const char* pInputFilePath, const char* pOutputFi
...
@@ -172,6 +174,7 @@ ma_result test_lpf3__by_format(const char* pInputFilePath, const char* pOutputFi
}
}
}
}
ma_lpf_uninit
(
&
lpf
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_notch.c
View file @
6e1cd416
...
@@ -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_notch2_uninit
(
&
notch
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/filtering/filtering_peak.c
View file @
6e1cd416
...
@@ -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_peak2_uninit
(
&
peak
,
NULL
);
ma_decoder_uninit
(
&
decoder
);
ma_decoder_uninit
(
&
decoder
);
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
tests/generation/generation_noise.c
View file @
6e1cd416
...
@@ -31,6 +31,7 @@ ma_result test_noise__by_format_and_type(ma_format format, ma_noise_type type, c
...
@@ -31,6 +31,7 @@ ma_result test_noise__by_format_and_type(ma_format format, ma_noise_type type, c
}
}
ma_encoder_uninit
(
&
encoder
);
ma_encoder_uninit
(
&
encoder
);
ma_noise_uninit
(
&
noise
,
NULL
);
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