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
  1. g_value_dup_string() calls malloc() internally, so it should correspond to g_free() rather than operator delete()
  2. standard C++ does not support variable length array
  3. I made the above changes to get it compiled with Visual C++ because I need it to work on Windows.
  4. 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!