Skip to content

Commit

Permalink
Fix leaks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Dec 23, 2024
1 parent 394d858 commit 34112fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Tests/base/NSXMLElement/basic.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ int main()

[node release];
[other release];
[xml release];
#endif
END_SET("NSXMLElement")
[arp release];
Expand Down
2 changes: 1 addition & 1 deletion Tests/base/NSXMLNode/children.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main()
// NSLog(@"Last time");

[node release];
//[docA release];
[docA release];
}
NS_HANDLER
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/base/NSXMLNode/description.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
NSXMLDocument *xmlDoc;
NSXMLElement *rootElement;
NSError *error;
unsigned i;


START_SET("NSXMLNode - descriptions")
Expand All @@ -38,6 +37,7 @@
@"<InvokeStampatore xmlns=\"http://tempuri.org/\"><Flusso><IdFlusso>DF247309-57F8-4CDB-8711-6E9DB69BCE74</IdFlusso><Sorgente>FOX/EDI</Sorgente><DataRichiesta>2012-06-26T17:00:00.717</DataRichiesta><OraRichiesta>17:00</OraRichiesta><NumeroDocumenti>10</NumeroDocumenti><Lettera><IdCrm>FakeField</IdCrm><TipoDocumento>1001</TipoDocumento><DataDocumento>2012-06-26T14:45:08.673Z</DataDocumento><Utente>FakeUser</Utente><Priorita>Normale</Priorita><PraticaName>FakeName</PraticaName><ContentHeader><fieldList><Field><name>Campaign.Name</name><value>Campagna ENP</value></Field><Field><name>Cliente.Cap</name><value>37053</value></Field></fieldList></ContentHeader></Lettera></Flusso></InvokeStampatore>",
"child description");
#endif
[xmlDoc release];
END_SET("NSXMLNode - descriptions")

return 0;
Expand Down

0 comments on commit 34112fa

Please sign in to comment.