faridco / rsox

libsox binding for Ruby
18 stars 20 forks source link

Data_Wrap_Struct is used to wrap C data into a Ruby object #9

Open esshka opened 1 year ago

esshka commented 1 year ago

While Data_Wrap_Struct is used to wrap C data into a Ruby object, it seems that the memory allocated for sox_sample_t in rsoxbuffer_initialize is not being freed. Similarly, the code doesn't seem to handle the freeing of memory for sox_signalinfo_t, sox_encodinginfo_t, and sox_oob_t.

JEuler commented 1 year ago

Oh my god, you came first with this issue! I was thinking about the same!