File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ THorseJWTCallback = class
33
33
FHeader: string;
34
34
public
35
35
constructor Create;
36
+ destructor Destroy; override;
36
37
class function New : THorseJWTCallback;
37
38
property Config: THorseJWTConfig read FConfig;
38
39
function SetConfig (AConfig: THorseJWTConfig): THorseJWTCallback;
@@ -103,7 +104,7 @@ function HorseJWT(ASecretJWT: string; ASessionClass: TClass; AConfig: THorseJWTC
103
104
104
105
procedure THorseJWTCallback.Callback (AHorseRequest: THorseRequest; AHorseResponse: THorseResponse; ANext: TProc);
105
106
var
106
- LBuilder : IJOSEConsumerBuilder;
107
+ LBuilder: IJOSEConsumerBuilder;
107
108
LValidations: TJOSEConsumer;
108
109
LJWT: TJOSEContext;
109
110
LToken, LHeaderNormalize: string;
@@ -191,7 +192,14 @@ procedure THorseJWTCallback.Callback(AHorseRequest: THorseRequest; AHorseRespons
191
192
192
193
constructor THorseJWTCallback.Create;
193
194
begin
194
- FConfig := THorseJWTConfig.Create;
195
+ FConfig := THorseJWTConfig.Create;
196
+ end ;
197
+
198
+ destructor THorseJWTCallback.Destroy;
199
+ begin
200
+ if Assigned(FConfig) then
201
+ FConfig.Free;
202
+ inherited ;
195
203
end ;
196
204
197
205
class function THorseJWTCallback.New : THorseJWTCallback;
You can’t perform that action at this time.
0 commit comments