Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
4297dbde
Commit
4297dbde
authored
Apr 01, 2010
by
Alexandre Savard
Browse files
[#3116] Free speex preprocess memory in codec destructor
parent
0d2a642a
Changes
3
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/audio/codecs/speexcodec_nb.cpp
View file @
4297dbde
...
...
@@ -107,6 +107,9 @@ class Speex : public AudioCodec
speex_bits_destroy
(
&
_speex_enc_bits
);
speex_encoder_destroy
(
_speex_enc_state
);
_speex_enc_state
=
0
;
speex_preprocess_state_destroy
(
_preprocess_state
);
_preprocess_state
=
NULL
;
}
virtual
int
codecDecode
(
short
*
dst
,
unsigned
char
*
src
,
unsigned
int
size
)
{
...
...
sflphone-common/src/audio/codecs/speexcodec_ub.cpp
View file @
4297dbde
...
...
@@ -106,6 +106,9 @@ class Speex : public AudioCodec
speex_bits_destroy
(
&
_speex_enc_bits
);
speex_encoder_destroy
(
_speex_enc_state
);
_speex_enc_state
=
0
;
speex_preprocess_state_destroy
(
_preprocess_state
);
_preprocess_state
=
NULL
;
}
virtual
int
codecDecode
(
short
*
dst
,
unsigned
char
*
src
,
unsigned
int
size
)
{
...
...
sflphone-common/src/audio/codecs/speexcodec_wb.cpp
View file @
4297dbde
...
...
@@ -105,6 +105,9 @@ class Speex : public AudioCodec
speex_bits_destroy
(
&
_speex_enc_bits
);
speex_encoder_destroy
(
_speex_enc_state
);
_speex_enc_state
=
0
;
speex_preprocess_state_destroy
(
_preprocess_state
);
_preprocess_state
=
NULL
;
}
virtual
int
codecDecode
(
short
*
dst
,
unsigned
char
*
src
,
unsigned
int
size
)
{
...
...
Write
Preview
Supports
Markdown
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