From d9efd136bdb2a89d19e5a95400c14accb24962f5 Mon Sep 17 00:00:00 2001 From: Martin Drab Date: Sat, 22 Jun 2019 16:32:42 +0200 Subject: [PATCH] [gui]: Fix a double-free --- gui/FillterForm.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/FillterForm.pas b/gui/FillterForm.pas index a3a1d7b..e119be2 100644 --- a/gui/FillterForm.pas +++ b/gui/FillterForm.pas @@ -537,10 +537,10 @@ If Assigned(f) Then begin ErrorMessage('The filter is already present in the list'); + f := Nil; Exit; end; - f := Nil; f := TRequestFilter.NewInstance(rt); If Not Assigned(f) Then Exit;