Commit b838e5af authored by François Grisez's avatar François Grisez

Fix memory leaks in to filter while detaching and attaching ticker

parent 5c813972
......@@ -56,7 +56,7 @@ static void generic_plc_init(MSFilter *f) {
static void generic_plc_preprocess(MSFilter *f) {
generic_plc_struct *mgps=(generic_plc_struct*)f->data;
mgps->plc_context = generic_plc_create_context(mgps->rate);
if(mgps->plc_context == NULL) mgps->plc_context = generic_plc_create_context(mgps->rate);
}
static void generic_plc_process(MSFilter *f) {
......
......@@ -124,7 +124,7 @@ static void resample_init_speex(ResampleData *dt){
static void resample_preprocess(MSFilter *obj){
ResampleData *dt=(ResampleData*)obj->data;
resample_init_speex(dt);
if(dt->handle == NULL) resample_init_speex(dt);
}
static void resample_process_ms2(MSFilter *obj){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment