issues
search
alumae
/
gst-kaldi-nnet2-online
GStreamer plugin around Kaldi's online neural network decoder
Apache License 2.0
185
stars
100
forks
source link
Fix malloc/delete to malloc/free; and deprecate variable length array
#26
Closed
wegylexy
closed
9 years ago
wegylexy
commented
9 years ago
g_value_dup_string()
calls
malloc()
internally, so it should correspond to
g_free()
rather than
operator delete()
standard C++ does not support variable length array
I made the above changes to get it compiled with Visual C++ because I need it to work on Windows.
This is my first time creating a pull request on GitHub. Please correct me if I do anything wrong.
alumae
commented
9 years ago
Thanks!
g_value_dup_string()
callsmalloc()
internally, so it should correspond tog_free()
rather thanoperator delete()