mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 08:10:49 +00:00
Fix leaks in tests
This commit is contained in:
parent
394d858813
commit
34112fa510
3 changed files with 3 additions and 2 deletions
|
@ -89,6 +89,7 @@ int main()
|
||||||
|
|
||||||
[node release];
|
[node release];
|
||||||
[other release];
|
[other release];
|
||||||
|
[xml release];
|
||||||
#endif
|
#endif
|
||||||
END_SET("NSXMLElement")
|
END_SET("NSXMLElement")
|
||||||
[arp release];
|
[arp release];
|
||||||
|
|
|
@ -50,7 +50,7 @@ int main()
|
||||||
// NSLog(@"Last time");
|
// NSLog(@"Last time");
|
||||||
|
|
||||||
[node release];
|
[node release];
|
||||||
//[docA release];
|
[docA release];
|
||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,6 @@ main(int argc, const char *argv[])
|
||||||
NSXMLDocument *xmlDoc;
|
NSXMLDocument *xmlDoc;
|
||||||
NSXMLElement *rootElement;
|
NSXMLElement *rootElement;
|
||||||
NSError *error;
|
NSError *error;
|
||||||
unsigned i;
|
|
||||||
|
|
||||||
|
|
||||||
START_SET("NSXMLNode - descriptions")
|
START_SET("NSXMLNode - descriptions")
|
||||||
|
@ -38,6 +37,7 @@ main(int argc, const char *argv[])
|
||||||
@"<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>",
|
@"<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");
|
"child description");
|
||||||
#endif
|
#endif
|
||||||
|
[xmlDoc release];
|
||||||
END_SET("NSXMLNode - descriptions")
|
END_SET("NSXMLNode - descriptions")
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue