View Issue Details

IDProjectCategoryView StatusLast Update
0036408FPCOtherpublic2019-12-08 21:07
ReporternomorelogicAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionProduct Buildsample testjsondataset.pp 
Target VersionFixed in Version3.3.1 
Summary0036408: Memory leaks in ..\fpcsrc\packages\fcl-db\tests\testjsondataset.pp
Description1) compiling following source
..\fpcsrc\packages\fcl-db\tests\testjsondataset.pp
 using -gh i found some memory lacks
attached a fix

2) in function Extractdata line
P:=TJSONParser.Create(F);
shows following warning
testjsondataset.pp(19,29) Warning: Symbol "Create" is deprecated: "use options form instead"
I can't figure out how fix this

Thanks
nomorelogic
Steps To Reproducecoompile using -gh
then run from shell
TagsNo tags attached.
Fixed in Revision43663
FPCOldBugId
FPCTarget3.2.0
Attached Files

Activities

nomorelogic

2019-12-08 11:42

reporter  

testjsondataset.7z (1,262 bytes)

Sven Barth

2019-12-08 11:51

manager   ~0119692

(fixed typos in title)

Michael Van Canneyt

2019-12-08 21:07

administrator   ~0119699

Thanks. Fixed memleaks in 43663.

Use
TJSONParser.Create(F,[]);
to get rid of the warning.

Issue History

Date Modified Username Field Change
2019-12-08 11:42 nomorelogic New Issue
2019-12-08 11:42 nomorelogic File Added: testjsondataset.7z
2019-12-08 11:49 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-12-08 11:49 Michael Van Canneyt Status new => assigned
2019-12-08 11:51 Sven Barth Summary Mamory lacks in ..\fpcsrc\packages\fcl-db\tests\testjsondataset.pp => Memory leaks in ..\fpcsrc\packages\fcl-db\tests\testjsondataset.pp
2019-12-08 11:51 Sven Barth FPCTarget => -
2019-12-08 11:51 Sven Barth Note Added: 0119692
2019-12-08 21:07 Michael Van Canneyt Status assigned => resolved
2019-12-08 21:07 Michael Van Canneyt Resolution open => fixed
2019-12-08 21:07 Michael Van Canneyt Fixed in Version => 3.3.1
2019-12-08 21:07 Michael Van Canneyt Fixed in Revision => 43663
2019-12-08 21:07 Michael Van Canneyt FPCTarget - => 3.2.0
2019-12-08 21:07 Michael Van Canneyt Note Added: 0119699