mirror of https://github.com/wb2osz/direwolf.git
Extended rrbb_new() memory leak detection boundary
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured. Extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
This commit is contained in:
parent
29b82e2724
commit
ed9618d75e
|
@ -101,7 +101,11 @@ rrbb_t rrbb_new (int chan, int subchan, int slice, int is_scrambled, int descram
|
||||||
|
|
||||||
new_count++;
|
new_count++;
|
||||||
|
|
||||||
if (new_count > delete_count + 100) {
|
/*
|
||||||
|
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured
|
||||||
|
extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
|
||||||
|
*/
|
||||||
|
if (new_count > delete_count + 168) {
|
||||||
text_color_set(DW_COLOR_ERROR);
|
text_color_set(DW_COLOR_ERROR);
|
||||||
dw_printf ("MEMORY LEAK, rrbb_new, new_count=%d, delete_count=%d\n", new_count, delete_count);
|
dw_printf ("MEMORY LEAK, rrbb_new, new_count=%d, delete_count=%d\n", new_count, delete_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue