Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
homeostasis
gst-kaldi-nnet2-online
Commits
c938fcf0
Commit
c938fcf0
authored
Jan 29, 2015
by
tanel
Browse files
Frees memory under LM rescoring related objects when finalizing
parent
864b6b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gstkaldinnet2onlinedecoder.cc
View file @
c938fcf0
...
...
@@ -1100,6 +1100,18 @@ static void gst_kaldinnet2onlinedecoder_finalize(GObject * object) {
if
(
filter
->
adaptation_state
)
{
delete
filter
->
adaptation_state
;
}
g_free
(
filter
->
lm_fst_name
);
g_free
(
filter
->
big_lm_const_arpa_name
);
if
(
filter
->
lm_fst
)
{
delete
filter
->
lm_fst
;
}
if
(
filter
->
big_lm_const_arpa
)
{
delete
filter
->
big_lm_const_arpa
;
}
if
(
filter
->
lm_compose_cache
)
{
delete
filter
->
lm_compose_cache
;
}
G_OBJECT_CLASS
(
parent_class
)
->
finalize
(
object
);
}
...
...
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