Fix proto/filter dtor not being called

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Reported-by: mm0zct