Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there are some memory leak #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demos/ConfigApp/ConfigApp.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ program ConfigApp;

uses
Forms,
MainForm in 'MainForm.pas' {frmMain},
luaConfig;
MainForm in 'MainForm.pas' {frmMain};

{$R *.res}

begin
ReportMemoryLeaksOnShutdown := True;
Application.Initialize;
Application.CreateForm(TfrmMain, frmMain);
Application.Run;
Expand Down
5 changes: 1 addition & 4 deletions demos/ConfigApp/MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TfrmMain = class(TForm)
implementation

uses
luaConfig, pluaRecord;
pluaRecord;

{$R *.dfm}

Expand Down Expand Up @@ -57,9 +57,6 @@ procedure TfrmMain.FormCreate(Sender: TObject);
Lua.LoadFile('config.lua');
Lua.RegisterLuaMethod('HexToInt', @lua_HexToInt);
Lua.RegisterLuaMethod('SetConfig', @lua_SetConfig);
// Create a "new" version of our virtual record type and register it to the lua
// global name of "Config"
plua_registerExistingRecord(Lua.LuaState, 'Config', nil, RecordTypesList['TConfig']);
end;

procedure TfrmMain.FormShow(Sender: TObject);
Expand Down
59 changes: 0 additions & 59 deletions demos/ConfigApp/luaConfig.pas

This file was deleted.