From e6f42403ba2a6a008edc0c9f424ef2708f9bf157 Mon Sep 17 00:00:00 2001 From: Halil Durmus Date: Wed, 20 Dec 2023 02:15:27 +0300 Subject: [PATCH] Fix memory leaks in tests (#803) * Free pointers in COM interface tests * Free the returned BSTR in COM network test --- .../iapplicationactivationmanager_test.dart | 2 ++ test/com/iappxfactory_test.dart | 2 ++ test/com/iappxfile_test.dart | 2 ++ test/com/iappxfilesenumerator_test.dart | 2 ++ test/com/iappxmanifestapplication_test.dart | 2 ++ ...pxmanifestapplicationsenumerator_test.dart | 2 ++ ...iappxmanifestospackagedependency_test.dart | 2 ++ ...estpackagedependenciesenumerator_test.dart | 2 ++ .../iappxmanifestpackagedependency_test.dart | 2 ++ test/com/iappxmanifestpackageid_test.dart | 2 ++ test/com/iappxmanifestproperties_test.dart | 2 ++ test/com/iappxmanifestreader2_test.dart | 2 ++ test/com/iappxmanifestreader3_test.dart | 2 ++ test/com/iappxmanifestreader4_test.dart | 2 ++ test/com/iappxmanifestreader5_test.dart | 2 ++ test/com/iappxmanifestreader6_test.dart | 2 ++ test/com/iappxmanifestreader7_test.dart | 2 ++ test/com/iappxmanifestreader_test.dart | 2 ++ test/com/iappxpackagereader_test.dart | 2 ++ test/com/iaudiocaptureclient_test.dart | 2 ++ test/com/iaudioclient_test.dart | 2 ++ test/com/iaudioclock_test.dart | 2 ++ test/com/iaudiorenderclient_test.dart | 2 ++ test/com/iaudiosessioncontrol_test.dart | 2 ++ test/com/iaudiosessionmanager_test.dart | 2 ++ test/com/iaudiostreamvolume_test.dart | 2 ++ test/com/ibindctx_test.dart | 2 ++ test/com/ichannelaudiovolume_test.dart | 2 ++ test/com/iclassfactory_test.dart | 2 ++ test/com/iconnectionpoint_test.dart | 2 ++ test/com/iconnectionpointcontainer_test.dart | 2 ++ test/com/idesktopwallpaper_test.dart | 2 ++ test/com/idispatch_test.dart | 2 ++ test/com/ienumidlist_test.dart | 2 ++ test/com/ienummoniker_test.dart | 2 ++ test/com/ienumnetworkconnections_test.dart | 2 ++ test/com/ienumnetworks_test.dart | 2 ++ test/com/ienumresources_test.dart | 2 ++ test/com/ienumspellingerror_test.dart | 2 ++ test/com/ienumstring_test.dart | 2 ++ test/com/ienumvariant_test.dart | 2 ++ test/com/ienumwbemclassobject_test.dart | 2 ++ test/com/ierrorinfo_test.dart | 2 ++ test/com/ifiledialog2_test.dart | 2 ++ test/com/ifiledialog_test.dart | 2 ++ test/com/ifiledialogcustomize_test.dart | 2 ++ test/com/ifileisinuse_test.dart | 2 ++ test/com/ifileopendialog_test.dart | 2 ++ test/com/ifilesavedialog_test.dart | 2 ++ test/com/iinitializewithwindow_test.dart | 2 ++ test/com/iinspectable_test.dart | 2 ++ test/com/iknownfolder_test.dart | 2 ++ test/com/iknownfoldermanager_test.dart | 2 ++ test/com/imetadataassemblyimport_test.dart | 2 ++ test/com/imetadatadispenser_test.dart | 2 ++ test/com/imetadatadispenserex_test.dart | 2 ++ test/com/imetadataimport2_test.dart | 2 ++ test/com/imetadataimport_test.dart | 2 ++ test/com/imetadatatables2_test.dart | 2 ++ test/com/imetadatatables_test.dart | 2 ++ test/com/immdevice_test.dart | 2 ++ test/com/immdeviceenumerator_test.dart | 2 ++ test/com/imodalwindow_test.dart | 2 ++ test/com/imoniker_test.dart | 2 ++ test/com/inetwork_test.dart | 2 ++ test/com/inetworkconnection_test.dart | 2 ++ test/com/inetworklistmanager_test.dart | 2 ++ test/com/inetworklistmanagerevents_test.dart | 2 ++ test/com/ipersist_test.dart | 2 ++ test/com/ipersistfile_test.dart | 2 ++ test/com/ipersistmemory_test.dart | 2 ++ test/com/ipersiststream_test.dart | 2 ++ test/com/iprovideclassinfo_test.dart | 2 ++ test/com/irestrictederrorinfo_test.dart | 2 ++ test/com/irunningobjecttable_test.dart | 2 ++ test/com/isensor_test.dart | 2 ++ test/com/isensorcollection_test.dart | 2 ++ test/com/isensordatareport_test.dart | 2 ++ test/com/isensormanager_test.dart | 2 ++ test/com/isequentialstream_test.dart | 2 ++ test/com/ishellfolder_test.dart | 2 ++ test/com/ishellitem2_test.dart | 2 ++ test/com/ishellitem_test.dart | 2 ++ test/com/ishellitemarray_test.dart | 2 ++ test/com/ishellitemfilter_test.dart | 2 ++ test/com/ishellitemimagefactory_test.dart | 2 ++ test/com/ishellitemresources_test.dart | 2 ++ test/com/ishelllink_test.dart | 2 ++ test/com/ishelllinkdatalist_test.dart | 2 ++ test/com/ishelllinkdual_test.dart | 2 ++ test/com/ishellservice_test.dart | 2 ++ test/com/isimpleaudiovolume_test.dart | 2 ++ test/com/ispeechaudioformat_test.dart | 2 ++ test/com/ispeechbasestream_test.dart | 2 ++ test/com/ispeechobjecttoken_test.dart | 2 ++ test/com/ispeechobjecttokens_test.dart | 2 ++ test/com/ispeechvoice_test.dart | 2 ++ test/com/ispeechvoicestatus_test.dart | 2 ++ test/com/ispeechwaveformatex_test.dart | 2 ++ test/com/ispellchecker2_test.dart | 2 ++ test/com/ispellchecker_test.dart | 2 ++ ...ispellcheckerchangedeventhandler_test.dart | 2 ++ test/com/ispellcheckerfactory_test.dart | 2 ++ test/com/ispellingerror_test.dart | 2 ++ test/com/ispeventsource_test.dart | 2 ++ test/com/ispnotifysource_test.dart | 2 ++ test/com/ispvoice_test.dart | 2 ++ test/com/istream_test.dart | 2 ++ test/com/isupporterrorinfo_test.dart | 2 ++ test/com/itypeinfo_test.dart | 2 ++ test/com/iuiautomation2_test.dart | 2 ++ test/com/iuiautomation3_test.dart | 2 ++ test/com/iuiautomation4_test.dart | 2 ++ test/com/iuiautomation5_test.dart | 2 ++ test/com/iuiautomation6_test.dart | 2 ++ test/com/iuiautomation_test.dart | 2 ++ test/com/iuiautomationandcondition_test.dart | 2 ++ .../iuiautomationannotationpattern_test.dart | 2 ++ test/com/iuiautomationboolcondition_test.dart | 2 ++ test/com/iuiautomationcacherequest_test.dart | 2 ++ test/com/iuiautomationcondition_test.dart | 25 ------------------- ...utomationcustomnavigationpattern_test.dart | 2 ++ test/com/iuiautomationdockpattern_test.dart | 2 ++ test/com/iuiautomationdragpattern_test.dart | 2 ++ .../iuiautomationdroptargetpattern_test.dart | 2 ++ test/com/iuiautomationelement2_test.dart | 2 ++ test/com/iuiautomationelement3_test.dart | 2 ++ test/com/iuiautomationelement4_test.dart | 2 ++ test/com/iuiautomationelement5_test.dart | 2 ++ test/com/iuiautomationelement6_test.dart | 2 ++ test/com/iuiautomationelement7_test.dart | 2 ++ test/com/iuiautomationelement8_test.dart | 2 ++ test/com/iuiautomationelement9_test.dart | 2 ++ test/com/iuiautomationelement_test.dart | 2 ++ test/com/iuiautomationelementarray_test.dart | 2 ++ ...iautomationexpandcollapsepattern_test.dart | 2 ++ .../iuiautomationgriditempattern_test.dart | 2 ++ test/com/iuiautomationgridpattern_test.dart | 2 ++ test/com/iuiautomationinvokepattern_test.dart | 2 ++ ...uiautomationitemcontainerpattern_test.dart | 2 ++ ...tomationlegacyiaccessiblepattern_test.dart | 2 ++ ...iuiautomationmultipleviewpattern_test.dart | 2 ++ test/com/iuiautomationnotcondition_test.dart | 2 ++ .../iuiautomationobjectmodelpattern_test.dart | 2 ++ test/com/iuiautomationorcondition_test.dart | 2 ++ .../iuiautomationpropertycondition_test.dart | 2 ++ test/com/iuiautomationproxyfactory_test.dart | 2 ++ .../iuiautomationproxyfactoryentry_test.dart | 2 ++ ...iuiautomationproxyfactorymapping_test.dart | 2 ++ .../iuiautomationrangevaluepattern_test.dart | 2 ++ .../iuiautomationscrollitempattern_test.dart | 2 ++ test/com/iuiautomationscrollpattern_test.dart | 2 ++ ...uiautomationselectionitempattern_test.dart | 2 ++ .../iuiautomationselectionpattern2_test.dart | 2 ++ .../iuiautomationselectionpattern_test.dart | 2 ++ ...automationspreadsheetitempattern_test.dart | 2 ++ .../iuiautomationspreadsheetpattern_test.dart | 2 ++ test/com/iuiautomationstylespattern_test.dart | 2 ++ ...tomationsynchronizedinputpattern_test.dart | 2 ++ .../iuiautomationtableitempattern_test.dart | 2 ++ test/com/iuiautomationtablepattern_test.dart | 2 ++ .../iuiautomationtextchildpattern_test.dart | 2 ++ .../iuiautomationtexteditpattern_test.dart | 2 ++ test/com/iuiautomationtextpattern2_test.dart | 2 ++ test/com/iuiautomationtextpattern_test.dart | 2 ++ test/com/iuiautomationtextrange2_test.dart | 2 ++ test/com/iuiautomationtextrange3_test.dart | 2 ++ test/com/iuiautomationtextrange_test.dart | 2 ++ .../com/iuiautomationtextrangearray_test.dart | 2 ++ test/com/iuiautomationtogglepattern_test.dart | 2 ++ .../iuiautomationtransformpattern2_test.dart | 2 ++ .../iuiautomationtransformpattern_test.dart | 2 ++ test/com/iuiautomationtreewalker_test.dart | 2 ++ test/com/iuiautomationvaluepattern_test.dart | 2 ++ ...automationvirtualizeditempattern_test.dart | 2 ++ test/com/iuiautomationwindowpattern_test.dart | 2 ++ test/com/iunknown_test.dart | 2 ++ test/com/iuri_test.dart | 2 ++ test/com/ivirtualdesktopmanager_test.dart | 2 ++ test/com/iwbemclassobject_test.dart | 2 ++ test/com/iwbemconfigurerefresher_test.dart | 2 ++ test/com/iwbemcontext_test.dart | 2 ++ test/com/iwbemhiperfenum_test.dart | 2 ++ test/com/iwbemlocator_test.dart | 2 ++ test/com/iwbemobjectaccess_test.dart | 2 ++ test/com/iwbemrefresher_test.dart | 2 ++ test/com/iwbemservices_test.dart | 2 ++ ...authenticationcoremanagerinterop_test.dart | 2 ++ test/com_network_test.dart | 3 +++ tool/win32gen/bin/generate.dart | 2 +- .../lib/src/projection/test_interface.dart | 2 ++ 191 files changed, 380 insertions(+), 26 deletions(-) delete mode 100644 test/com/iuiautomationcondition_test.dart diff --git a/test/com/iapplicationactivationmanager_test.dart b/test/com/iapplicationactivationmanager_test.dart index 9fbb6099a..45489355d 100644 --- a/test/com/iapplicationactivationmanager_test.dart +++ b/test/com/iapplicationactivationmanager_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IApplicationActivationManager.activateForProtocol', () { expect(applicationactivationmanager.activateForProtocol, isA()); }); + + free(ptr); } diff --git a/test/com/iappxfactory_test.dart b/test/com/iappxfactory_test.dart index 4aba008d1..f759297f2 100644 --- a/test/com/iappxfactory_test.dart +++ b/test/com/iappxfactory_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IAppxFactory.createValidatedBlockMapReader', () { expect(appxfactory.createValidatedBlockMapReader, isA()); }); + + free(ptr); } diff --git a/test/com/iappxfile_test.dart b/test/com/iappxfile_test.dart index 5d69f5cb8..91b727cb4 100644 --- a/test/com/iappxfile_test.dart +++ b/test/com/iappxfile_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IAppxFile.getStream', () { expect(appxfile.getStream, isA()); }); + + free(ptr); } diff --git a/test/com/iappxfilesenumerator_test.dart b/test/com/iappxfilesenumerator_test.dart index 1d5d9c422..fe9ee8061 100644 --- a/test/com/iappxfilesenumerator_test.dart +++ b/test/com/iappxfilesenumerator_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IAppxFilesEnumerator.moveNext', () { expect(appxfilesenumerator.moveNext, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestapplication_test.dart b/test/com/iappxmanifestapplication_test.dart index 9dd70a76d..8c86823b0 100644 --- a/test/com/iappxmanifestapplication_test.dart +++ b/test/com/iappxmanifestapplication_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IAppxManifestApplication.getAppUserModelId', () { expect(appxmanifestapplication.getAppUserModelId, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestapplicationsenumerator_test.dart b/test/com/iappxmanifestapplicationsenumerator_test.dart index 161389f9f..52b15d81c 100644 --- a/test/com/iappxmanifestapplicationsenumerator_test.dart +++ b/test/com/iappxmanifestapplicationsenumerator_test.dart @@ -32,4 +32,6 @@ void main() { test('Can instantiate IAppxManifestApplicationsEnumerator.moveNext', () { expect(appxmanifestapplicationsenumerator.moveNext, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestospackagedependency_test.dart b/test/com/iappxmanifestospackagedependency_test.dart index d434a140b..b681c1df0 100644 --- a/test/com/iappxmanifestospackagedependency_test.dart +++ b/test/com/iappxmanifestospackagedependency_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IAppxManifestOSPackageDependency.getVersion', () { expect(appxmanifestospackagedependency.getVersion, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestpackagedependenciesenumerator_test.dart b/test/com/iappxmanifestpackagedependenciesenumerator_test.dart index 548e27fd9..cdd7cb3ed 100644 --- a/test/com/iappxmanifestpackagedependenciesenumerator_test.dart +++ b/test/com/iappxmanifestpackagedependenciesenumerator_test.dart @@ -38,4 +38,6 @@ void main() { () { expect(appxmanifestpackagedependenciesenumerator.moveNext, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestpackagedependency_test.dart b/test/com/iappxmanifestpackagedependency_test.dart index b4077507a..25051cd48 100644 --- a/test/com/iappxmanifestpackagedependency_test.dart +++ b/test/com/iappxmanifestpackagedependency_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IAppxManifestPackageDependency.getMinVersion', () { expect(appxmanifestpackagedependency.getMinVersion, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestpackageid_test.dart b/test/com/iappxmanifestpackageid_test.dart index 692ef76aa..4c36d21cf 100644 --- a/test/com/iappxmanifestpackageid_test.dart +++ b/test/com/iappxmanifestpackageid_test.dart @@ -46,4 +46,6 @@ void main() { test('Can instantiate IAppxManifestPackageId.getPackageFamilyName', () { expect(appxmanifestpackageid.getPackageFamilyName, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestproperties_test.dart b/test/com/iappxmanifestproperties_test.dart index ec76ff269..54f62bfd0 100644 --- a/test/com/iappxmanifestproperties_test.dart +++ b/test/com/iappxmanifestproperties_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IAppxManifestProperties.getStringValue', () { expect(appxmanifestproperties.getStringValue, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader2_test.dart b/test/com/iappxmanifestreader2_test.dart index fc14b386d..a6b9d5acb 100644 --- a/test/com/iappxmanifestreader2_test.dart +++ b/test/com/iappxmanifestreader2_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IAppxManifestReader2.getQualifiedResources', () { expect(appxmanifestreader2.getQualifiedResources, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader3_test.dart b/test/com/iappxmanifestreader3_test.dart index cf75e1ee1..433f83025 100644 --- a/test/com/iappxmanifestreader3_test.dart +++ b/test/com/iappxmanifestreader3_test.dart @@ -30,4 +30,6 @@ void main() { test('Can instantiate IAppxManifestReader3.getTargetDeviceFamilies', () { expect(appxmanifestreader3.getTargetDeviceFamilies, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader4_test.dart b/test/com/iappxmanifestreader4_test.dart index 1f7e65d97..8e8f34a93 100644 --- a/test/com/iappxmanifestreader4_test.dart +++ b/test/com/iappxmanifestreader4_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IAppxManifestReader4.getOptionalPackageInfo', () { expect(appxmanifestreader4.getOptionalPackageInfo, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader5_test.dart b/test/com/iappxmanifestreader5_test.dart index bb7038a0c..460b13723 100644 --- a/test/com/iappxmanifestreader5_test.dart +++ b/test/com/iappxmanifestreader5_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IAppxManifestReader5.getMainPackageDependencies', () { expect(appxmanifestreader5.getMainPackageDependencies, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader6_test.dart b/test/com/iappxmanifestreader6_test.dart index 22fab0b60..7a5b66cf0 100644 --- a/test/com/iappxmanifestreader6_test.dart +++ b/test/com/iappxmanifestreader6_test.dart @@ -27,4 +27,6 @@ void main() { expect( appxmanifestreader6.getIsNonQualifiedResourcePackage, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader7_test.dart b/test/com/iappxmanifestreader7_test.dart index 60ca9670f..ddc62ea68 100644 --- a/test/com/iappxmanifestreader7_test.dart +++ b/test/com/iappxmanifestreader7_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IAppxManifestReader7.getHostRuntimeDependencies', () { expect(appxmanifestreader7.getHostRuntimeDependencies, isA()); }); + + free(ptr); } diff --git a/test/com/iappxmanifestreader_test.dart b/test/com/iappxmanifestreader_test.dart index a9a4bde2e..b28f103f0 100644 --- a/test/com/iappxmanifestreader_test.dart +++ b/test/com/iappxmanifestreader_test.dart @@ -49,4 +49,6 @@ void main() { test('Can instantiate IAppxManifestReader.getStream', () { expect(appxmanifestreader.getStream, isA()); }); + + free(ptr); } diff --git a/test/com/iappxpackagereader_test.dart b/test/com/iappxpackagereader_test.dart index bbfed73df..648039597 100644 --- a/test/com/iappxpackagereader_test.dart +++ b/test/com/iappxpackagereader_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IAppxPackageReader.getManifest', () { expect(appxpackagereader.getManifest, isA()); }); + + free(ptr); } diff --git a/test/com/iaudiocaptureclient_test.dart b/test/com/iaudiocaptureclient_test.dart index 27d5e52cb..efdc6ec16 100644 --- a/test/com/iaudiocaptureclient_test.dart +++ b/test/com/iaudiocaptureclient_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IAudioCaptureClient.getNextPacketSize', () { expect(audiocaptureclient.getNextPacketSize, isA()); }); + + free(ptr); } diff --git a/test/com/iaudioclient_test.dart b/test/com/iaudioclient_test.dart index 326f9397a..a28a1746d 100644 --- a/test/com/iaudioclient_test.dart +++ b/test/com/iaudioclient_test.dart @@ -58,4 +58,6 @@ void main() { test('Can instantiate IAudioClient.getService', () { expect(audioclient.getService, isA()); }); + + free(ptr); } diff --git a/test/com/iaudioclock_test.dart b/test/com/iaudioclock_test.dart index 9326310d7..86691c2b2 100644 --- a/test/com/iaudioclock_test.dart +++ b/test/com/iaudioclock_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IAudioClock.getCharacteristics', () { expect(audioclock.getCharacteristics, isA()); }); + + free(ptr); } diff --git a/test/com/iaudiorenderclient_test.dart b/test/com/iaudiorenderclient_test.dart index 8b99984c5..ed6268243 100644 --- a/test/com/iaudiorenderclient_test.dart +++ b/test/com/iaudiorenderclient_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IAudioRenderClient.releaseBuffer', () { expect(audiorenderclient.releaseBuffer, isA()); }); + + free(ptr); } diff --git a/test/com/iaudiosessioncontrol_test.dart b/test/com/iaudiosessioncontrol_test.dart index 3dccba3ff..a5e1beef8 100644 --- a/test/com/iaudiosessioncontrol_test.dart +++ b/test/com/iaudiosessioncontrol_test.dart @@ -54,4 +54,6 @@ void main() { expect(audiosessioncontrol.unregisterAudioSessionNotification, isA()); }); + + free(ptr); } diff --git a/test/com/iaudiosessionmanager_test.dart b/test/com/iaudiosessionmanager_test.dart index d26eb82a3..cc6f9e7f9 100644 --- a/test/com/iaudiosessionmanager_test.dart +++ b/test/com/iaudiosessionmanager_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IAudioSessionManager.getSimpleAudioVolume', () { expect(audiosessionmanager.getSimpleAudioVolume, isA()); }); + + free(ptr); } diff --git a/test/com/iaudiostreamvolume_test.dart b/test/com/iaudiostreamvolume_test.dart index 39c4712f0..9ea4eb551 100644 --- a/test/com/iaudiostreamvolume_test.dart +++ b/test/com/iaudiostreamvolume_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IAudioStreamVolume.getAllVolumes', () { expect(audiostreamvolume.getAllVolumes, isA()); }); + + free(ptr); } diff --git a/test/com/ibindctx_test.dart b/test/com/ibindctx_test.dart index b717989c0..7536dec8c 100644 --- a/test/com/ibindctx_test.dart +++ b/test/com/ibindctx_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate IBindCtx.revokeObjectParam', () { expect(bindctx.revokeObjectParam, isA()); }); + + free(ptr); } diff --git a/test/com/ichannelaudiovolume_test.dart b/test/com/ichannelaudiovolume_test.dart index b789361de..4b6b03756 100644 --- a/test/com/ichannelaudiovolume_test.dart +++ b/test/com/ichannelaudiovolume_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IChannelAudioVolume.getAllVolumes', () { expect(channelaudiovolume.getAllVolumes, isA()); }); + + free(ptr); } diff --git a/test/com/iclassfactory_test.dart b/test/com/iclassfactory_test.dart index d450d6c43..8a9085266 100644 --- a/test/com/iclassfactory_test.dart +++ b/test/com/iclassfactory_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IClassFactory.lockServer', () { expect(classfactory.lockServer, isA()); }); + + free(ptr); } diff --git a/test/com/iconnectionpoint_test.dart b/test/com/iconnectionpoint_test.dart index 2924afd7a..d5878429f 100644 --- a/test/com/iconnectionpoint_test.dart +++ b/test/com/iconnectionpoint_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IConnectionPoint.enumConnections', () { expect(connectionpoint.enumConnections, isA()); }); + + free(ptr); } diff --git a/test/com/iconnectionpointcontainer_test.dart b/test/com/iconnectionpointcontainer_test.dart index 97c3fadb8..5c3573a0b 100644 --- a/test/com/iconnectionpointcontainer_test.dart +++ b/test/com/iconnectionpointcontainer_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IConnectionPointContainer.findConnectionPoint', () { expect(connectionpointcontainer.findConnectionPoint, isA()); }); + + free(ptr); } diff --git a/test/com/idesktopwallpaper_test.dart b/test/com/idesktopwallpaper_test.dart index f2b05a768..44cc73a23 100644 --- a/test/com/idesktopwallpaper_test.dart +++ b/test/com/idesktopwallpaper_test.dart @@ -70,4 +70,6 @@ void main() { test('Can instantiate IDesktopWallpaper.enable', () { expect(desktopwallpaper.enable, isA()); }); + + free(ptr); } diff --git a/test/com/idispatch_test.dart b/test/com/idispatch_test.dart index 9fed6a1b2..0ec9255f4 100644 --- a/test/com/idispatch_test.dart +++ b/test/com/idispatch_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IDispatch.invoke', () { expect(dispatch.invoke, isA()); }); + + free(ptr); } diff --git a/test/com/ienumidlist_test.dart b/test/com/ienumidlist_test.dart index ede470cbf..eeb171e6f 100644 --- a/test/com/ienumidlist_test.dart +++ b/test/com/ienumidlist_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumIDList.clone', () { expect(enumidlist.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienummoniker_test.dart b/test/com/ienummoniker_test.dart index 97b593b32..232b4ef82 100644 --- a/test/com/ienummoniker_test.dart +++ b/test/com/ienummoniker_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumMoniker.clone', () { expect(enummoniker.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumnetworkconnections_test.dart b/test/com/ienumnetworkconnections_test.dart index 472572af3..cd2934fd4 100644 --- a/test/com/ienumnetworkconnections_test.dart +++ b/test/com/ienumnetworkconnections_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumNetworkConnections.clone', () { expect(enumnetworkconnections.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumnetworks_test.dart b/test/com/ienumnetworks_test.dart index 66b188f9c..2c0b98762 100644 --- a/test/com/ienumnetworks_test.dart +++ b/test/com/ienumnetworks_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumNetworks.clone', () { expect(enumnetworks.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumresources_test.dart b/test/com/ienumresources_test.dart index 353a52429..7a0361ee6 100644 --- a/test/com/ienumresources_test.dart +++ b/test/com/ienumresources_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumResources.clone', () { expect(enumresources.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumspellingerror_test.dart b/test/com/ienumspellingerror_test.dart index a16d57bb1..94183c151 100644 --- a/test/com/ienumspellingerror_test.dart +++ b/test/com/ienumspellingerror_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IEnumSpellingError.next', () { expect(enumspellingerror.next, isA()); }); + + free(ptr); } diff --git a/test/com/ienumstring_test.dart b/test/com/ienumstring_test.dart index 8ba7a0524..c3da01911 100644 --- a/test/com/ienumstring_test.dart +++ b/test/com/ienumstring_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumString.clone', () { expect(enumstring.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumvariant_test.dart b/test/com/ienumvariant_test.dart index 77801502c..1f00ce5bb 100644 --- a/test/com/ienumvariant_test.dart +++ b/test/com/ienumvariant_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IEnumVARIANT.clone', () { expect(enumvariant.clone, isA()); }); + + free(ptr); } diff --git a/test/com/ienumwbemclassobject_test.dart b/test/com/ienumwbemclassobject_test.dart index 2823ca5fb..482248c06 100644 --- a/test/com/ienumwbemclassobject_test.dart +++ b/test/com/ienumwbemclassobject_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IEnumWbemClassObject.skip', () { expect(enumwbemclassobject.skip, isA()); }); + + free(ptr); } diff --git a/test/com/ierrorinfo_test.dart b/test/com/ierrorinfo_test.dart index 344552977..919e27445 100644 --- a/test/com/ierrorinfo_test.dart +++ b/test/com/ierrorinfo_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IErrorInfo.getHelpContext', () { expect(errorinfo.getHelpContext, isA()); }); + + free(ptr); } diff --git a/test/com/ifiledialog2_test.dart b/test/com/ifiledialog2_test.dart index d6016c7a2..9038d494e 100644 --- a/test/com/ifiledialog2_test.dart +++ b/test/com/ifiledialog2_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IFileDialog2.setNavigationRoot', () { expect(filedialog2.setNavigationRoot, isA()); }); + + free(ptr); } diff --git a/test/com/ifiledialog_test.dart b/test/com/ifiledialog_test.dart index 145217c2d..772758a05 100644 --- a/test/com/ifiledialog_test.dart +++ b/test/com/ifiledialog_test.dart @@ -91,4 +91,6 @@ void main() { test('Can instantiate IFileDialog.setFilter', () { expect(filedialog.setFilter, isA()); }); + + free(ptr); } diff --git a/test/com/ifiledialogcustomize_test.dart b/test/com/ifiledialogcustomize_test.dart index 7b7191201..a62bfd8bb 100644 --- a/test/com/ifiledialogcustomize_test.dart +++ b/test/com/ifiledialogcustomize_test.dart @@ -103,4 +103,6 @@ void main() { test('Can instantiate IFileDialogCustomize.setControlItemText', () { expect(filedialogcustomize.setControlItemText, isA()); }); + + free(ptr); } diff --git a/test/com/ifileisinuse_test.dart b/test/com/ifileisinuse_test.dart index 960ec781a..c25866785 100644 --- a/test/com/ifileisinuse_test.dart +++ b/test/com/ifileisinuse_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IFileIsInUse.closeFile', () { expect(fileisinuse.closeFile, isA()); }); + + free(ptr); } diff --git a/test/com/ifileopendialog_test.dart b/test/com/ifileopendialog_test.dart index 38baefde3..f6c4b96bf 100644 --- a/test/com/ifileopendialog_test.dart +++ b/test/com/ifileopendialog_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IFileOpenDialog.getSelectedItems', () { expect(fileopendialog.getSelectedItems, isA()); }); + + free(ptr); } diff --git a/test/com/ifilesavedialog_test.dart b/test/com/ifilesavedialog_test.dart index 99b4be5da..2fa624540 100644 --- a/test/com/ifilesavedialog_test.dart +++ b/test/com/ifilesavedialog_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IFileSaveDialog.applyProperties', () { expect(filesavedialog.applyProperties, isA()); }); + + free(ptr); } diff --git a/test/com/iinitializewithwindow_test.dart b/test/com/iinitializewithwindow_test.dart index 1286cdf3d..20c79b649 100644 --- a/test/com/iinitializewithwindow_test.dart +++ b/test/com/iinitializewithwindow_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IInitializeWithWindow.initialize', () { expect(initializewithwindow.initialize, isA()); }); + + free(ptr); } diff --git a/test/com/iinspectable_test.dart b/test/com/iinspectable_test.dart index 53ca578e8..d649da2e9 100644 --- a/test/com/iinspectable_test.dart +++ b/test/com/iinspectable_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IInspectable.getTrustLevel', () { expect(inspectable.getTrustLevel, isA()); }); + + free(ptr); } diff --git a/test/com/iknownfolder_test.dart b/test/com/iknownfolder_test.dart index 95cfd658a..e41a60abb 100644 --- a/test/com/iknownfolder_test.dart +++ b/test/com/iknownfolder_test.dart @@ -49,4 +49,6 @@ void main() { test('Can instantiate IKnownFolder.getFolderDefinition', () { expect(knownfolder.getFolderDefinition, isA()); }); + + free(ptr); } diff --git a/test/com/iknownfoldermanager_test.dart b/test/com/iknownfoldermanager_test.dart index a1af84d05..a485c1c5d 100644 --- a/test/com/iknownfoldermanager_test.dart +++ b/test/com/iknownfoldermanager_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate IKnownFolderManager.redirect', () { expect(knownfoldermanager.redirect, isA()); }); + + free(ptr); } diff --git a/test/com/imetadataassemblyimport_test.dart b/test/com/imetadataassemblyimport_test.dart index e663dc7e3..e31b8a68d 100644 --- a/test/com/imetadataassemblyimport_test.dart +++ b/test/com/imetadataassemblyimport_test.dart @@ -65,4 +65,6 @@ void main() { test('Can instantiate IMetaDataAssemblyImport.findAssembliesByName', () { expect(metadataassemblyimport.findAssembliesByName, isA()); }); + + free(ptr); } diff --git a/test/com/imetadatadispenser_test.dart b/test/com/imetadatadispenser_test.dart index cd91cf90e..9dbca8ca3 100644 --- a/test/com/imetadatadispenser_test.dart +++ b/test/com/imetadatadispenser_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IMetaDataDispenser.openScopeOnMemory', () { expect(metadatadispenser.openScopeOnMemory, isA()); }); + + free(ptr); } diff --git a/test/com/imetadatadispenserex_test.dart b/test/com/imetadatadispenserex_test.dart index d96ac62ed..f4a9b54dd 100644 --- a/test/com/imetadatadispenserex_test.dart +++ b/test/com/imetadatadispenserex_test.dart @@ -40,4 +40,6 @@ void main() { test('Can instantiate IMetaDataDispenserEx.findAssemblyModule', () { expect(metadatadispenserex.findAssemblyModule, isA()); }); + + free(ptr); } diff --git a/test/com/imetadataimport2_test.dart b/test/com/imetadataimport2_test.dart index 1ac7d1b79..ba800a5e3 100644 --- a/test/com/imetadataimport2_test.dart +++ b/test/com/imetadataimport2_test.dart @@ -46,4 +46,6 @@ void main() { test('Can instantiate IMetaDataImport2.enumMethodSpecs', () { expect(metadataimport2.enumMethodSpecs, isA()); }); + + free(ptr); } diff --git a/test/com/imetadataimport_test.dart b/test/com/imetadataimport_test.dart index f51a1f995..aa4c11efd 100644 --- a/test/com/imetadataimport_test.dart +++ b/test/com/imetadataimport_test.dart @@ -208,4 +208,6 @@ void main() { test('Can instantiate IMetaDataImport.isGlobal', () { expect(metadataimport.isGlobal, isA()); }); + + free(ptr); } diff --git a/test/com/imetadatatables2_test.dart b/test/com/imetadatatables2_test.dart index 78f2330da..83f1c5c15 100644 --- a/test/com/imetadatatables2_test.dart +++ b/test/com/imetadatatables2_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IMetaDataTables2.getMetaDataStreamInfo', () { expect(metadatatables2.getMetaDataStreamInfo, isA()); }); + + free(ptr); } diff --git a/test/com/imetadatatables_test.dart b/test/com/imetadatatables_test.dart index 54dc49f09..7a84976d9 100644 --- a/test/com/imetadatatables_test.dart +++ b/test/com/imetadatatables_test.dart @@ -79,4 +79,6 @@ void main() { test('Can instantiate IMetaDataTables.getNextUserString', () { expect(metadatatables.getNextUserString, isA()); }); + + free(ptr); } diff --git a/test/com/immdevice_test.dart b/test/com/immdevice_test.dart index b6e5d55ae..6aea447d6 100644 --- a/test/com/immdevice_test.dart +++ b/test/com/immdevice_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IMMDevice.getState', () { expect(mmdevice.getState, isA()); }); + + free(ptr); } diff --git a/test/com/immdeviceenumerator_test.dart b/test/com/immdeviceenumerator_test.dart index ca38e52b0..e0eb3b4af 100644 --- a/test/com/immdeviceenumerator_test.dart +++ b/test/com/immdeviceenumerator_test.dart @@ -43,4 +43,6 @@ void main() { expect(mmdeviceenumerator.unregisterEndpointNotificationCallback, isA()); }); + + free(ptr); } diff --git a/test/com/imodalwindow_test.dart b/test/com/imodalwindow_test.dart index d2784c720..314d953fc 100644 --- a/test/com/imodalwindow_test.dart +++ b/test/com/imodalwindow_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IModalWindow.show', () { expect(modalwindow.show, isA()); }); + + free(ptr); } diff --git a/test/com/imoniker_test.dart b/test/com/imoniker_test.dart index 8ebc02d79..14ec35f7c 100644 --- a/test/com/imoniker_test.dart +++ b/test/com/imoniker_test.dart @@ -67,4 +67,6 @@ void main() { test('Can instantiate IMoniker.isSystemMoniker', () { expect(moniker.isSystemMoniker, isA()); }); + + free(ptr); } diff --git a/test/com/inetwork_test.dart b/test/com/inetwork_test.dart index d6602972c..3c7d3a9b9 100644 --- a/test/com/inetwork_test.dart +++ b/test/com/inetwork_test.dart @@ -55,4 +55,6 @@ void main() { test('Can instantiate INetwork.setCategory', () { expect(network.setCategory, isA()); }); + + free(ptr); } diff --git a/test/com/inetworkconnection_test.dart b/test/com/inetworkconnection_test.dart index 32beaf935..6c4ffdaf9 100644 --- a/test/com/inetworkconnection_test.dart +++ b/test/com/inetworkconnection_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate INetworkConnection.getDomainType', () { expect(networkconnection.getDomainType, isA()); }); + + free(ptr); } diff --git a/test/com/inetworklistmanager_test.dart b/test/com/inetworklistmanager_test.dart index b504bdef8..b8944f9b6 100644 --- a/test/com/inetworklistmanager_test.dart +++ b/test/com/inetworklistmanager_test.dart @@ -43,4 +43,6 @@ void main() { test('Can instantiate INetworkListManager.clearSimulatedProfileInfo', () { expect(networklistmanager.clearSimulatedProfileInfo, isA()); }); + + free(ptr); } diff --git a/test/com/inetworklistmanagerevents_test.dart b/test/com/inetworklistmanagerevents_test.dart index 703604143..624625c95 100644 --- a/test/com/inetworklistmanagerevents_test.dart +++ b/test/com/inetworklistmanagerevents_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate INetworkListManagerEvents.connectivityChanged', () { expect(networklistmanagerevents.connectivityChanged, isA()); }); + + free(ptr); } diff --git a/test/com/ipersist_test.dart b/test/com/ipersist_test.dart index 1edeb4bab..18db96a3c 100644 --- a/test/com/ipersist_test.dart +++ b/test/com/ipersist_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IPersist.getClassID', () { expect(persist.getClassID, isA()); }); + + free(ptr); } diff --git a/test/com/ipersistfile_test.dart b/test/com/ipersistfile_test.dart index 994883e8b..57e73ebb4 100644 --- a/test/com/ipersistfile_test.dart +++ b/test/com/ipersistfile_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IPersistFile.getCurFile', () { expect(persistfile.getCurFile, isA()); }); + + free(ptr); } diff --git a/test/com/ipersistmemory_test.dart b/test/com/ipersistmemory_test.dart index 6f505a768..92d5e5f2e 100644 --- a/test/com/ipersistmemory_test.dart +++ b/test/com/ipersistmemory_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IPersistMemory.initNew', () { expect(persistmemory.initNew, isA()); }); + + free(ptr); } diff --git a/test/com/ipersiststream_test.dart b/test/com/ipersiststream_test.dart index 309764447..6714cce5f 100644 --- a/test/com/ipersiststream_test.dart +++ b/test/com/ipersiststream_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IPersistStream.getSizeMax', () { expect(persiststream.getSizeMax, isA()); }); + + free(ptr); } diff --git a/test/com/iprovideclassinfo_test.dart b/test/com/iprovideclassinfo_test.dart index 748bf03e0..3e69b5293 100644 --- a/test/com/iprovideclassinfo_test.dart +++ b/test/com/iprovideclassinfo_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IProvideClassInfo.getClassInfo', () { expect(provideclassinfo.getClassInfo, isA()); }); + + free(ptr); } diff --git a/test/com/irestrictederrorinfo_test.dart b/test/com/irestrictederrorinfo_test.dart index 6a350564f..5b3bf95d3 100644 --- a/test/com/irestrictederrorinfo_test.dart +++ b/test/com/irestrictederrorinfo_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IRestrictedErrorInfo.getReference', () { expect(restrictederrorinfo.getReference, isA()); }); + + free(ptr); } diff --git a/test/com/irunningobjecttable_test.dart b/test/com/irunningobjecttable_test.dart index 22b2149df..fcb114f02 100644 --- a/test/com/irunningobjecttable_test.dart +++ b/test/com/irunningobjecttable_test.dart @@ -43,4 +43,6 @@ void main() { test('Can instantiate IRunningObjectTable.enumRunning', () { expect(runningobjecttable.enumRunning, isA()); }); + + free(ptr); } diff --git a/test/com/isensor_test.dart b/test/com/isensor_test.dart index 781eac88d..db559fb6a 100644 --- a/test/com/isensor_test.dart +++ b/test/com/isensor_test.dart @@ -67,4 +67,6 @@ void main() { test('Can instantiate ISensor.setEventSink', () { expect(sensor.setEventSink, isA()); }); + + free(ptr); } diff --git a/test/com/isensorcollection_test.dart b/test/com/isensorcollection_test.dart index b312c5437..bdc7d9386 100644 --- a/test/com/isensorcollection_test.dart +++ b/test/com/isensorcollection_test.dart @@ -40,4 +40,6 @@ void main() { test('Can instantiate ISensorCollection.clear', () { expect(sensorcollection.clear, isA()); }); + + free(ptr); } diff --git a/test/com/isensordatareport_test.dart b/test/com/isensordatareport_test.dart index 6037eb51b..f3f914a85 100644 --- a/test/com/isensordatareport_test.dart +++ b/test/com/isensordatareport_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate ISensorDataReport.getSensorValues', () { expect(sensordatareport.getSensorValues, isA()); }); + + free(ptr); } diff --git a/test/com/isensormanager_test.dart b/test/com/isensormanager_test.dart index 9ceca533d..935129a1d 100644 --- a/test/com/isensormanager_test.dart +++ b/test/com/isensormanager_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate ISensorManager.requestPermissions', () { expect(sensormanager.requestPermissions, isA()); }); + + free(ptr); } diff --git a/test/com/isequentialstream_test.dart b/test/com/isequentialstream_test.dart index b5da7a471..0fa96cd34 100644 --- a/test/com/isequentialstream_test.dart +++ b/test/com/isequentialstream_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate ISequentialStream.write', () { expect(sequentialstream.write, isA()); }); + + free(ptr); } diff --git a/test/com/ishellfolder_test.dart b/test/com/ishellfolder_test.dart index 84486a4a6..59e2520ba 100644 --- a/test/com/ishellfolder_test.dart +++ b/test/com/ishellfolder_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate IShellFolder.setNameOf', () { expect(shellfolder.setNameOf, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitem2_test.dart b/test/com/ishellitem2_test.dart index 32cc6c2a1..aef7a381f 100644 --- a/test/com/ishellitem2_test.dart +++ b/test/com/ishellitem2_test.dart @@ -61,4 +61,6 @@ void main() { test('Can instantiate IShellItem2.getBool', () { expect(shellitem2.getBool, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitem_test.dart b/test/com/ishellitem_test.dart index 40e02ab98..a8e71069e 100644 --- a/test/com/ishellitem_test.dart +++ b/test/com/ishellitem_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IShellItem.compare', () { expect(shellitem.compare, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitemarray_test.dart b/test/com/ishellitemarray_test.dart index 2d81825cd..7e2408af2 100644 --- a/test/com/ishellitemarray_test.dart +++ b/test/com/ishellitemarray_test.dart @@ -43,4 +43,6 @@ void main() { test('Can instantiate IShellItemArray.enumItems', () { expect(shellitemarray.enumItems, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitemfilter_test.dart b/test/com/ishellitemfilter_test.dart index 34ccebb2f..839eea038 100644 --- a/test/com/ishellitemfilter_test.dart +++ b/test/com/ishellitemfilter_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IShellItemFilter.getEnumFlagsForItem', () { expect(shellitemfilter.getEnumFlagsForItem, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitemimagefactory_test.dart b/test/com/ishellitemimagefactory_test.dart index 0a6c4eaf6..3a56c5cc3 100644 --- a/test/com/ishellitemimagefactory_test.dart +++ b/test/com/ishellitemimagefactory_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IShellItemImageFactory.getImage', () { expect(shellitemimagefactory.getImage, isA()); }); + + free(ptr); } diff --git a/test/com/ishellitemresources_test.dart b/test/com/ishellitemresources_test.dart index 34bc4861d..b5ce8e868 100644 --- a/test/com/ishellitemresources_test.dart +++ b/test/com/ishellitemresources_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate IShellItemResources.markForDelete', () { expect(shellitemresources.markForDelete, isA()); }); + + free(ptr); } diff --git a/test/com/ishelllink_test.dart b/test/com/ishelllink_test.dart index 2ced43fb5..786e014cf 100644 --- a/test/com/ishelllink_test.dart +++ b/test/com/ishelllink_test.dart @@ -76,4 +76,6 @@ void main() { test('Can instantiate IShellLink.setPath', () { expect(shelllink.setPath, isA()); }); + + free(ptr); } diff --git a/test/com/ishelllinkdatalist_test.dart b/test/com/ishelllinkdatalist_test.dart index 4aa0307b5..86a540958 100644 --- a/test/com/ishelllinkdatalist_test.dart +++ b/test/com/ishelllinkdatalist_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IShellLinkDataList.setFlags', () { expect(shelllinkdatalist.setFlags, isA()); }); + + free(ptr); } diff --git a/test/com/ishelllinkdual_test.dart b/test/com/ishelllinkdual_test.dart index 4f7f208f0..50f249ff7 100644 --- a/test/com/ishelllinkdual_test.dart +++ b/test/com/ishelllinkdual_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IShellLinkDual.save', () { expect(shelllinkdual.save, isA()); }); + + free(ptr); } diff --git a/test/com/ishellservice_test.dart b/test/com/ishellservice_test.dart index f7a50296d..49f52cb56 100644 --- a/test/com/ishellservice_test.dart +++ b/test/com/ishellservice_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IShellService.setOwner', () { expect(shellservice.setOwner, isA()); }); + + free(ptr); } diff --git a/test/com/isimpleaudiovolume_test.dart b/test/com/isimpleaudiovolume_test.dart index ca259cdf8..6b3f88921 100644 --- a/test/com/isimpleaudiovolume_test.dart +++ b/test/com/isimpleaudiovolume_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate ISimpleAudioVolume.getMute', () { expect(simpleaudiovolume.getMute, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechaudioformat_test.dart b/test/com/ispeechaudioformat_test.dart index 3ef3f22c5..2a4e7eb03 100644 --- a/test/com/ispeechaudioformat_test.dart +++ b/test/com/ispeechaudioformat_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate ISpeechAudioFormat.setWaveFormatEx', () { expect(speechaudioformat.setWaveFormatEx, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechbasestream_test.dart b/test/com/ispeechbasestream_test.dart index 38c6c344e..370411b3f 100644 --- a/test/com/ispeechbasestream_test.dart +++ b/test/com/ispeechbasestream_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate ISpeechBaseStream.seek', () { expect(speechbasestream.seek, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechobjecttoken_test.dart b/test/com/ispeechobjecttoken_test.dart index 704e088c0..49a2b43a7 100644 --- a/test/com/ispeechobjecttoken_test.dart +++ b/test/com/ispeechobjecttoken_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate ISpeechObjectToken.matchesAttributes', () { expect(speechobjecttoken.matchesAttributes, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechobjecttokens_test.dart b/test/com/ispeechobjecttokens_test.dart index 0f256b7b3..7b948e1be 100644 --- a/test/com/ispeechobjecttokens_test.dart +++ b/test/com/ispeechobjecttokens_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate ISpeechObjectTokens.item', () { expect(speechobjecttokens.item, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechvoice_test.dart b/test/com/ispeechvoice_test.dart index 1a7440d73..c0f7c4c7f 100644 --- a/test/com/ispeechvoice_test.dart +++ b/test/com/ispeechvoice_test.dart @@ -64,4 +64,6 @@ void main() { test('Can instantiate ISpeechVoice.displayUI', () { expect(speechvoice.displayUI, isA()); }); + + free(ptr); } diff --git a/test/com/ispeechvoicestatus_test.dart b/test/com/ispeechvoicestatus_test.dart index b8830f4e6..fb8060e24 100644 --- a/test/com/ispeechvoicestatus_test.dart +++ b/test/com/ispeechvoicestatus_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final speechvoicestatus = ISpeechVoiceStatus(ptr); + + free(ptr); } diff --git a/test/com/ispeechwaveformatex_test.dart b/test/com/ispeechwaveformatex_test.dart index 8675aee3e..5f87a0111 100644 --- a/test/com/ispeechwaveformatex_test.dart +++ b/test/com/ispeechwaveformatex_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final speechwaveformatex = ISpeechWaveFormatEx(ptr); + + free(ptr); } diff --git a/test/com/ispellchecker2_test.dart b/test/com/ispellchecker2_test.dart index 93c3a8967..7c1ade64f 100644 --- a/test/com/ispellchecker2_test.dart +++ b/test/com/ispellchecker2_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate ISpellChecker2.remove', () { expect(spellchecker2.remove, isA()); }); + + free(ptr); } diff --git a/test/com/ispellchecker_test.dart b/test/com/ispellchecker_test.dart index 32ff939ea..8862f3b7a 100644 --- a/test/com/ispellchecker_test.dart +++ b/test/com/ispellchecker_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate ISpellChecker.comprehensiveCheck', () { expect(spellchecker.comprehensiveCheck, isA()); }); + + free(ptr); } diff --git a/test/com/ispellcheckerchangedeventhandler_test.dart b/test/com/ispellcheckerchangedeventhandler_test.dart index 9c7ba60c2..2b95120d7 100644 --- a/test/com/ispellcheckerchangedeventhandler_test.dart +++ b/test/com/ispellcheckerchangedeventhandler_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate ISpellCheckerChangedEventHandler.invoke', () { expect(spellcheckerchangedeventhandler.invoke, isA()); }); + + free(ptr); } diff --git a/test/com/ispellcheckerfactory_test.dart b/test/com/ispellcheckerfactory_test.dart index 3e0e47854..e28aa602e 100644 --- a/test/com/ispellcheckerfactory_test.dart +++ b/test/com/ispellcheckerfactory_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate ISpellCheckerFactory.createSpellChecker', () { expect(spellcheckerfactory.createSpellChecker, isA()); }); + + free(ptr); } diff --git a/test/com/ispellingerror_test.dart b/test/com/ispellingerror_test.dart index 4bfc63e2d..2405c19d3 100644 --- a/test/com/ispellingerror_test.dart +++ b/test/com/ispellingerror_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final spellingerror = ISpellingError(ptr); + + free(ptr); } diff --git a/test/com/ispeventsource_test.dart b/test/com/ispeventsource_test.dart index fc5c89107..633652bf8 100644 --- a/test/com/ispeventsource_test.dart +++ b/test/com/ispeventsource_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate ISpEventSource.getInfo', () { expect(speventsource.getInfo, isA()); }); + + free(ptr); } diff --git a/test/com/ispnotifysource_test.dart b/test/com/ispnotifysource_test.dart index 2a8a2a98e..422a7f50c 100644 --- a/test/com/ispnotifysource_test.dart +++ b/test/com/ispnotifysource_test.dart @@ -43,4 +43,6 @@ void main() { test('Can instantiate ISpNotifySource.getNotifyEventHandle', () { expect(spnotifysource.getNotifyEventHandle, isA()); }); + + free(ptr); } diff --git a/test/com/ispvoice_test.dart b/test/com/ispvoice_test.dart index ffdb2f251..4923ef8ce 100644 --- a/test/com/ispvoice_test.dart +++ b/test/com/ispvoice_test.dart @@ -97,4 +97,6 @@ void main() { test('Can instantiate ISpVoice.displayUI', () { expect(spvoice.displayUI, isA()); }); + + free(ptr); } diff --git a/test/com/istream_test.dart b/test/com/istream_test.dart index a842b933f..4dbda1431 100644 --- a/test/com/istream_test.dart +++ b/test/com/istream_test.dart @@ -49,4 +49,6 @@ void main() { test('Can instantiate IStream.clone', () { expect(stream.clone, isA()); }); + + free(ptr); } diff --git a/test/com/isupporterrorinfo_test.dart b/test/com/isupporterrorinfo_test.dart index 91b085a58..bb4b22c88 100644 --- a/test/com/isupporterrorinfo_test.dart +++ b/test/com/isupporterrorinfo_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate ISupportErrorInfo.interfaceSupportsErrorInfo', () { expect(supporterrorinfo.interfaceSupportsErrorInfo, isA()); }); + + free(ptr); } diff --git a/test/com/itypeinfo_test.dart b/test/com/itypeinfo_test.dart index b83d3d8f7..97551a68b 100644 --- a/test/com/itypeinfo_test.dart +++ b/test/com/itypeinfo_test.dart @@ -79,4 +79,6 @@ void main() { test('Can instantiate ITypeInfo.releaseVarDesc', () { expect(typeinfo.releaseVarDesc, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomation2_test.dart b/test/com/iuiautomation2_test.dart index 10b4c4e14..0f84b2842 100644 --- a/test/com/iuiautomation2_test.dart +++ b/test/com/iuiautomation2_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomation2 = IUIAutomation2(ptr); + + free(ptr); } diff --git a/test/com/iuiautomation3_test.dart b/test/com/iuiautomation3_test.dart index 566e04362..11f678d83 100644 --- a/test/com/iuiautomation3_test.dart +++ b/test/com/iuiautomation3_test.dart @@ -30,4 +30,6 @@ void main() { expect( uiautomation3.removeTextEditTextChangedEventHandler, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomation4_test.dart b/test/com/iuiautomation4_test.dart index fff163474..445dff17d 100644 --- a/test/com/iuiautomation4_test.dart +++ b/test/com/iuiautomation4_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomation4.removeChangesEventHandler', () { expect(uiautomation4.removeChangesEventHandler, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomation5_test.dart b/test/com/iuiautomation5_test.dart index 86d40e075..0185c3388 100644 --- a/test/com/iuiautomation5_test.dart +++ b/test/com/iuiautomation5_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomation5.removeNotificationEventHandler', () { expect(uiautomation5.removeNotificationEventHandler, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomation6_test.dart b/test/com/iuiautomation6_test.dart index 376cee64f..bcff0cafd 100644 --- a/test/com/iuiautomation6_test.dart +++ b/test/com/iuiautomation6_test.dart @@ -43,4 +43,6 @@ void main() { expect(uiautomation6.removeActiveTextPositionChangedEventHandler, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomation_test.dart b/test/com/iuiautomation_test.dart index 8cb48462c..4433dcbd8 100644 --- a/test/com/iuiautomation_test.dart +++ b/test/com/iuiautomation_test.dart @@ -163,4 +163,6 @@ void main() { test('Can instantiate IUIAutomation.elementFromIAccessibleBuildCache', () { expect(uiautomation.elementFromIAccessibleBuildCache, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationandcondition_test.dart b/test/com/iuiautomationandcondition_test.dart index 45fa8135e..1daf82031 100644 --- a/test/com/iuiautomationandcondition_test.dart +++ b/test/com/iuiautomationandcondition_test.dart @@ -29,4 +29,6 @@ void main() { test('Can instantiate IUIAutomationAndCondition.getChildren', () { expect(uiautomationandcondition.getChildren, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationannotationpattern_test.dart b/test/com/iuiautomationannotationpattern_test.dart index e0a44f20d..baf3cae6d 100644 --- a/test/com/iuiautomationannotationpattern_test.dart +++ b/test/com/iuiautomationannotationpattern_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationannotationpattern = IUIAutomationAnnotationPattern(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationboolcondition_test.dart b/test/com/iuiautomationboolcondition_test.dart index 581c76b62..f3034df86 100644 --- a/test/com/iuiautomationboolcondition_test.dart +++ b/test/com/iuiautomationboolcondition_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationboolcondition = IUIAutomationBoolCondition(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationcacherequest_test.dart b/test/com/iuiautomationcacherequest_test.dart index ccf523f92..f8d026621 100644 --- a/test/com/iuiautomationcacherequest_test.dart +++ b/test/com/iuiautomationcacherequest_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IUIAutomationCacheRequest.clone', () { expect(uiautomationcacherequest.clone, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationcondition_test.dart b/test/com/iuiautomationcondition_test.dart deleted file mode 100644 index b6b957be8..000000000 --- a/test/com/iuiautomationcondition_test.dart +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2020, Dart | Windows. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Tests that Win32 API prototypes can be successfully loaded (i.e. that -// lookupFunction works for all the APIs generated) - -// THIS FILE IS GENERATED AUTOMATICALLY AND SHOULD NOT BE EDITED DIRECTLY. - -// ignore_for_file: unused_local_variable - -@TestOn('windows') - -import 'dart:ffi'; - -import 'package:ffi/ffi.dart'; -import 'package:test/test.dart'; - -import 'package:win32/win32.dart'; - -void main() { - final ptr = calloc(); - - final uiautomationcondition = IUIAutomationCondition(ptr); -} diff --git a/test/com/iuiautomationcustomnavigationpattern_test.dart b/test/com/iuiautomationcustomnavigationpattern_test.dart index 3c323ca55..fbc398b10 100644 --- a/test/com/iuiautomationcustomnavigationpattern_test.dart +++ b/test/com/iuiautomationcustomnavigationpattern_test.dart @@ -26,4 +26,6 @@ void main() { test('Can instantiate IUIAutomationCustomNavigationPattern.navigate', () { expect(uiautomationcustomnavigationpattern.navigate, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationdockpattern_test.dart b/test/com/iuiautomationdockpattern_test.dart index 5d6df6f5b..f82b5329e 100644 --- a/test/com/iuiautomationdockpattern_test.dart +++ b/test/com/iuiautomationdockpattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationDockPattern.setDockPosition', () { expect(uiautomationdockpattern.setDockPosition, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationdragpattern_test.dart b/test/com/iuiautomationdragpattern_test.dart index 1d5860868..2fc32f445 100644 --- a/test/com/iuiautomationdragpattern_test.dart +++ b/test/com/iuiautomationdragpattern_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationDragPattern.getCachedGrabbedItems', () { expect(uiautomationdragpattern.getCachedGrabbedItems, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationdroptargetpattern_test.dart b/test/com/iuiautomationdroptargetpattern_test.dart index 3bffa572c..e9a706526 100644 --- a/test/com/iuiautomationdroptargetpattern_test.dart +++ b/test/com/iuiautomationdroptargetpattern_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationdroptargetpattern = IUIAutomationDropTargetPattern(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement2_test.dart b/test/com/iuiautomationelement2_test.dart index edd074fbb..9564f6eb9 100644 --- a/test/com/iuiautomationelement2_test.dart +++ b/test/com/iuiautomationelement2_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement2 = IUIAutomationElement2(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement3_test.dart b/test/com/iuiautomationelement3_test.dart index 6ece6b358..bbab30ecb 100644 --- a/test/com/iuiautomationelement3_test.dart +++ b/test/com/iuiautomationelement3_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationElement3.showContextMenu', () { expect(uiautomationelement3.showContextMenu, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationelement4_test.dart b/test/com/iuiautomationelement4_test.dart index 12635b9f3..f60fc3f09 100644 --- a/test/com/iuiautomationelement4_test.dart +++ b/test/com/iuiautomationelement4_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement4 = IUIAutomationElement4(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement5_test.dart b/test/com/iuiautomationelement5_test.dart index 4fe8021d3..82f26c925 100644 --- a/test/com/iuiautomationelement5_test.dart +++ b/test/com/iuiautomationelement5_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement5 = IUIAutomationElement5(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement6_test.dart b/test/com/iuiautomationelement6_test.dart index 94fa09eeb..7ffb90512 100644 --- a/test/com/iuiautomationelement6_test.dart +++ b/test/com/iuiautomationelement6_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement6 = IUIAutomationElement6(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement7_test.dart b/test/com/iuiautomationelement7_test.dart index cd79fbc74..dc7b4ad8f 100644 --- a/test/com/iuiautomationelement7_test.dart +++ b/test/com/iuiautomationelement7_test.dart @@ -40,4 +40,6 @@ void main() { test('Can instantiate IUIAutomationElement7.getCurrentMetadataValue', () { expect(uiautomationelement7.getCurrentMetadataValue, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationelement8_test.dart b/test/com/iuiautomationelement8_test.dart index f056c6c0a..3a6678337 100644 --- a/test/com/iuiautomationelement8_test.dart +++ b/test/com/iuiautomationelement8_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement8 = IUIAutomationElement8(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement9_test.dart b/test/com/iuiautomationelement9_test.dart index 44118595a..65c14120c 100644 --- a/test/com/iuiautomationelement9_test.dart +++ b/test/com/iuiautomationelement9_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationelement9 = IUIAutomationElement9(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationelement_test.dart b/test/com/iuiautomationelement_test.dart index 4d4765bfd..d50137668 100644 --- a/test/com/iuiautomationelement_test.dart +++ b/test/com/iuiautomationelement_test.dart @@ -76,4 +76,6 @@ void main() { test('Can instantiate IUIAutomationElement.getClickablePoint', () { expect(uiautomationelement.getClickablePoint, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationelementarray_test.dart b/test/com/iuiautomationelementarray_test.dart index 0e7bfa79d..beb655a55 100644 --- a/test/com/iuiautomationelementarray_test.dart +++ b/test/com/iuiautomationelementarray_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationElementArray.getElement', () { expect(uiautomationelementarray.getElement, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationexpandcollapsepattern_test.dart b/test/com/iuiautomationexpandcollapsepattern_test.dart index 40807a6d5..a801bc76a 100644 --- a/test/com/iuiautomationexpandcollapsepattern_test.dart +++ b/test/com/iuiautomationexpandcollapsepattern_test.dart @@ -29,4 +29,6 @@ void main() { test('Can instantiate IUIAutomationExpandCollapsePattern.collapse', () { expect(uiautomationexpandcollapsepattern.collapse, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationgriditempattern_test.dart b/test/com/iuiautomationgriditempattern_test.dart index 0e548aa9d..ff9c7892b 100644 --- a/test/com/iuiautomationgriditempattern_test.dart +++ b/test/com/iuiautomationgriditempattern_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationgriditempattern = IUIAutomationGridItemPattern(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationgridpattern_test.dart b/test/com/iuiautomationgridpattern_test.dart index 7c844428c..7e82f78e1 100644 --- a/test/com/iuiautomationgridpattern_test.dart +++ b/test/com/iuiautomationgridpattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationGridPattern.getItem', () { expect(uiautomationgridpattern.getItem, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationinvokepattern_test.dart b/test/com/iuiautomationinvokepattern_test.dart index 958e971f5..40626bc9e 100644 --- a/test/com/iuiautomationinvokepattern_test.dart +++ b/test/com/iuiautomationinvokepattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationInvokePattern.invoke', () { expect(uiautomationinvokepattern.invoke, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationitemcontainerpattern_test.dart b/test/com/iuiautomationitemcontainerpattern_test.dart index 6908175c2..6a849be83 100644 --- a/test/com/iuiautomationitemcontainerpattern_test.dart +++ b/test/com/iuiautomationitemcontainerpattern_test.dart @@ -28,4 +28,6 @@ void main() { expect( uiautomationitemcontainerpattern.findItemByProperty, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationlegacyiaccessiblepattern_test.dart b/test/com/iuiautomationlegacyiaccessiblepattern_test.dart index 982b736e3..40f313cd5 100644 --- a/test/com/iuiautomationlegacyiaccessiblepattern_test.dart +++ b/test/com/iuiautomationlegacyiaccessiblepattern_test.dart @@ -51,4 +51,6 @@ void main() { expect( uiautomationlegacyiaccessiblepattern.getIAccessible, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationmultipleviewpattern_test.dart b/test/com/iuiautomationmultipleviewpattern_test.dart index 50f25de1f..90faff065 100644 --- a/test/com/iuiautomationmultipleviewpattern_test.dart +++ b/test/com/iuiautomationmultipleviewpattern_test.dart @@ -40,4 +40,6 @@ void main() { expect(uiautomationmultipleviewpattern.getCachedSupportedViews, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationnotcondition_test.dart b/test/com/iuiautomationnotcondition_test.dart index 40480be17..1cfdd863c 100644 --- a/test/com/iuiautomationnotcondition_test.dart +++ b/test/com/iuiautomationnotcondition_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationNotCondition.getChild', () { expect(uiautomationnotcondition.getChild, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationobjectmodelpattern_test.dart b/test/com/iuiautomationobjectmodelpattern_test.dart index 584e13148..e8a674f75 100644 --- a/test/com/iuiautomationobjectmodelpattern_test.dart +++ b/test/com/iuiautomationobjectmodelpattern_test.dart @@ -28,4 +28,6 @@ void main() { expect(uiautomationobjectmodelpattern.getUnderlyingObjectModel, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationorcondition_test.dart b/test/com/iuiautomationorcondition_test.dart index f19d9d0ba..edb9ee01b 100644 --- a/test/com/iuiautomationorcondition_test.dart +++ b/test/com/iuiautomationorcondition_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationOrCondition.getChildren', () { expect(uiautomationorcondition.getChildren, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationpropertycondition_test.dart b/test/com/iuiautomationpropertycondition_test.dart index 212034607..aaa00fad9 100644 --- a/test/com/iuiautomationpropertycondition_test.dart +++ b/test/com/iuiautomationpropertycondition_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationpropertycondition = IUIAutomationPropertyCondition(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationproxyfactory_test.dart b/test/com/iuiautomationproxyfactory_test.dart index 66e1ffbf4..7024d48d0 100644 --- a/test/com/iuiautomationproxyfactory_test.dart +++ b/test/com/iuiautomationproxyfactory_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationProxyFactory.createProvider', () { expect(uiautomationproxyfactory.createProvider, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationproxyfactoryentry_test.dart b/test/com/iuiautomationproxyfactoryentry_test.dart index 107254ff9..8aee10ab8 100644 --- a/test/com/iuiautomationproxyfactoryentry_test.dart +++ b/test/com/iuiautomationproxyfactoryentry_test.dart @@ -34,4 +34,6 @@ void main() { expect(uiautomationproxyfactoryentry.getWinEventsForAutomationEvent, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationproxyfactorymapping_test.dart b/test/com/iuiautomationproxyfactorymapping_test.dart index 848868dc1..616a0f3fe 100644 --- a/test/com/iuiautomationproxyfactorymapping_test.dart +++ b/test/com/iuiautomationproxyfactorymapping_test.dart @@ -48,4 +48,6 @@ void main() { expect( uiautomationproxyfactorymapping.restoreDefaultTable, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationrangevaluepattern_test.dart b/test/com/iuiautomationrangevaluepattern_test.dart index 3e04f107b..db5c63f4a 100644 --- a/test/com/iuiautomationrangevaluepattern_test.dart +++ b/test/com/iuiautomationrangevaluepattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationRangeValuePattern.setValue', () { expect(uiautomationrangevaluepattern.setValue, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationscrollitempattern_test.dart b/test/com/iuiautomationscrollitempattern_test.dart index 571ceb2c1..44bf2e82d 100644 --- a/test/com/iuiautomationscrollitempattern_test.dart +++ b/test/com/iuiautomationscrollitempattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationScrollItemPattern.scrollIntoView', () { expect(uiautomationscrollitempattern.scrollIntoView, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationscrollpattern_test.dart b/test/com/iuiautomationscrollpattern_test.dart index 58d5f8fdd..f42dc8514 100644 --- a/test/com/iuiautomationscrollpattern_test.dart +++ b/test/com/iuiautomationscrollpattern_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationScrollPattern.setScrollPercent', () { expect(uiautomationscrollpattern.setScrollPercent, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationselectionitempattern_test.dart b/test/com/iuiautomationselectionitempattern_test.dart index ced0afd25..19c1385ee 100644 --- a/test/com/iuiautomationselectionitempattern_test.dart +++ b/test/com/iuiautomationselectionitempattern_test.dart @@ -34,4 +34,6 @@ void main() { expect( uiautomationselectionitempattern.removeFromSelection, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationselectionpattern2_test.dart b/test/com/iuiautomationselectionpattern2_test.dart index 55d9ec6d2..99148f455 100644 --- a/test/com/iuiautomationselectionpattern2_test.dart +++ b/test/com/iuiautomationselectionpattern2_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationselectionpattern2 = IUIAutomationSelectionPattern2(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationselectionpattern_test.dart b/test/com/iuiautomationselectionpattern_test.dart index b68d5b2ed..6b938a73f 100644 --- a/test/com/iuiautomationselectionpattern_test.dart +++ b/test/com/iuiautomationselectionpattern_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationSelectionPattern.getCachedSelection', () { expect(uiautomationselectionpattern.getCachedSelection, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationspreadsheetitempattern_test.dart b/test/com/iuiautomationspreadsheetitempattern_test.dart index 07c3077f7..d4323fdfa 100644 --- a/test/com/iuiautomationspreadsheetitempattern_test.dart +++ b/test/com/iuiautomationspreadsheetitempattern_test.dart @@ -47,4 +47,6 @@ void main() { expect(uiautomationspreadsheetitempattern.getCachedAnnotationTypes, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationspreadsheetpattern_test.dart b/test/com/iuiautomationspreadsheetpattern_test.dart index 0b09ae132..b8dba4534 100644 --- a/test/com/iuiautomationspreadsheetpattern_test.dart +++ b/test/com/iuiautomationspreadsheetpattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationSpreadsheetPattern.getItemByName', () { expect(uiautomationspreadsheetpattern.getItemByName, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationstylespattern_test.dart b/test/com/iuiautomationstylespattern_test.dart index 32e7127e3..7990b0d5b 100644 --- a/test/com/iuiautomationstylespattern_test.dart +++ b/test/com/iuiautomationstylespattern_test.dart @@ -34,4 +34,6 @@ void main() { expect(uiautomationstylespattern.getCachedExtendedPropertiesAsArray, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationsynchronizedinputpattern_test.dart b/test/com/iuiautomationsynchronizedinputpattern_test.dart index 88752367d..35835910f 100644 --- a/test/com/iuiautomationsynchronizedinputpattern_test.dart +++ b/test/com/iuiautomationsynchronizedinputpattern_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IUIAutomationSynchronizedInputPattern.cancel', () { expect(uiautomationsynchronizedinputpattern.cancel, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtableitempattern_test.dart b/test/com/iuiautomationtableitempattern_test.dart index 11fb8b9a8..24f768d85 100644 --- a/test/com/iuiautomationtableitempattern_test.dart +++ b/test/com/iuiautomationtableitempattern_test.dart @@ -44,4 +44,6 @@ void main() { expect(uiautomationtableitempattern.getCachedColumnHeaderItems, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtablepattern_test.dart b/test/com/iuiautomationtablepattern_test.dart index 90c20b5f0..75ae39330 100644 --- a/test/com/iuiautomationtablepattern_test.dart +++ b/test/com/iuiautomationtablepattern_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IUIAutomationTablePattern.getCachedColumnHeaders', () { expect(uiautomationtablepattern.getCachedColumnHeaders, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextchildpattern_test.dart b/test/com/iuiautomationtextchildpattern_test.dart index acfdc650e..60c0d4f1c 100644 --- a/test/com/iuiautomationtextchildpattern_test.dart +++ b/test/com/iuiautomationtextchildpattern_test.dart @@ -22,4 +22,6 @@ void main() { final ptr = calloc(); final uiautomationtextchildpattern = IUIAutomationTextChildPattern(ptr); + + free(ptr); } diff --git a/test/com/iuiautomationtexteditpattern_test.dart b/test/com/iuiautomationtexteditpattern_test.dart index b2ec1bf28..84dbcec36 100644 --- a/test/com/iuiautomationtexteditpattern_test.dart +++ b/test/com/iuiautomationtexteditpattern_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationTextEditPattern.getConversionTarget', () { expect(uiautomationtexteditpattern.getConversionTarget, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextpattern2_test.dart b/test/com/iuiautomationtextpattern2_test.dart index ddb0f125f..354597e3e 100644 --- a/test/com/iuiautomationtextpattern2_test.dart +++ b/test/com/iuiautomationtextpattern2_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationTextPattern2.getCaretRange', () { expect(uiautomationtextpattern2.getCaretRange, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextpattern_test.dart b/test/com/iuiautomationtextpattern_test.dart index 2cb93da26..77b0b7c31 100644 --- a/test/com/iuiautomationtextpattern_test.dart +++ b/test/com/iuiautomationtextpattern_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IUIAutomationTextPattern.getVisibleRanges', () { expect(uiautomationtextpattern.getVisibleRanges, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextrange2_test.dart b/test/com/iuiautomationtextrange2_test.dart index 70fbf30a1..8cd37b5f7 100644 --- a/test/com/iuiautomationtextrange2_test.dart +++ b/test/com/iuiautomationtextrange2_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationTextRange2.showContextMenu', () { expect(uiautomationtextrange2.showContextMenu, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextrange3_test.dart b/test/com/iuiautomationtextrange3_test.dart index ec46483a4..d462d3c51 100644 --- a/test/com/iuiautomationtextrange3_test.dart +++ b/test/com/iuiautomationtextrange3_test.dart @@ -33,4 +33,6 @@ void main() { test('Can instantiate IUIAutomationTextRange3.getAttributeValues', () { expect(uiautomationtextrange3.getAttributeValues, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextrange_test.dart b/test/com/iuiautomationtextrange_test.dart index 2c360ddb7..c18da9012 100644 --- a/test/com/iuiautomationtextrange_test.dart +++ b/test/com/iuiautomationtextrange_test.dart @@ -76,4 +76,6 @@ void main() { test('Can instantiate IUIAutomationTextRange.getChildren', () { expect(uiautomationtextrange.getChildren, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtextrangearray_test.dart b/test/com/iuiautomationtextrangearray_test.dart index 3c2ed1c1b..fbaaa5ea0 100644 --- a/test/com/iuiautomationtextrangearray_test.dart +++ b/test/com/iuiautomationtextrangearray_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationTextRangeArray.getElement', () { expect(uiautomationtextrangearray.getElement, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtogglepattern_test.dart b/test/com/iuiautomationtogglepattern_test.dart index a186806b1..d810f58ed 100644 --- a/test/com/iuiautomationtogglepattern_test.dart +++ b/test/com/iuiautomationtogglepattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationTogglePattern.toggle', () { expect(uiautomationtogglepattern.toggle, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtransformpattern2_test.dart b/test/com/iuiautomationtransformpattern2_test.dart index 9e40b17ab..f4e858c84 100644 --- a/test/com/iuiautomationtransformpattern2_test.dart +++ b/test/com/iuiautomationtransformpattern2_test.dart @@ -28,4 +28,6 @@ void main() { test('Can instantiate IUIAutomationTransformPattern2.zoomByUnit', () { expect(uiautomationtransformpattern2.zoomByUnit, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtransformpattern_test.dart b/test/com/iuiautomationtransformpattern_test.dart index 163c3f43e..d0429f3e0 100644 --- a/test/com/iuiautomationtransformpattern_test.dart +++ b/test/com/iuiautomationtransformpattern_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IUIAutomationTransformPattern.rotate', () { expect(uiautomationtransformpattern.rotate, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationtreewalker_test.dart b/test/com/iuiautomationtreewalker_test.dart index ced00bd2b..e1e532f8c 100644 --- a/test/com/iuiautomationtreewalker_test.dart +++ b/test/com/iuiautomationtreewalker_test.dart @@ -70,4 +70,6 @@ void main() { () { expect(uiautomationtreewalker.normalizeElementBuildCache, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationvaluepattern_test.dart b/test/com/iuiautomationvaluepattern_test.dart index 12df58963..8c220174f 100644 --- a/test/com/iuiautomationvaluepattern_test.dart +++ b/test/com/iuiautomationvaluepattern_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IUIAutomationValuePattern.setValue', () { expect(uiautomationvaluepattern.setValue, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationvirtualizeditempattern_test.dart b/test/com/iuiautomationvirtualizeditempattern_test.dart index da39e7f90..a1bef8f89 100644 --- a/test/com/iuiautomationvirtualizeditempattern_test.dart +++ b/test/com/iuiautomationvirtualizeditempattern_test.dart @@ -26,4 +26,6 @@ void main() { test('Can instantiate IUIAutomationVirtualizedItemPattern.realize', () { expect(uiautomationvirtualizeditempattern.realize, isA()); }); + + free(ptr); } diff --git a/test/com/iuiautomationwindowpattern_test.dart b/test/com/iuiautomationwindowpattern_test.dart index 379e3eed3..28a1ca811 100644 --- a/test/com/iuiautomationwindowpattern_test.dart +++ b/test/com/iuiautomationwindowpattern_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IUIAutomationWindowPattern.setWindowVisualState', () { expect(uiautomationwindowpattern.setWindowVisualState, isA()); }); + + free(ptr); } diff --git a/test/com/iunknown_test.dart b/test/com/iunknown_test.dart index 7c28db675..7ebe1ff68 100644 --- a/test/com/iunknown_test.dart +++ b/test/com/iunknown_test.dart @@ -31,4 +31,6 @@ void main() { test('Can instantiate IUnknown.release', () { expect(unknown.release, isA()); }); + + free(ptr); } diff --git a/test/com/iuri_test.dart b/test/com/iuri_test.dart index 1d4a2a2c1..5cb5259d7 100644 --- a/test/com/iuri_test.dart +++ b/test/com/iuri_test.dart @@ -97,4 +97,6 @@ void main() { test('Can instantiate IUri.isEqual', () { expect(uri.isEqual, isA()); }); + + free(ptr); } diff --git a/test/com/ivirtualdesktopmanager_test.dart b/test/com/ivirtualdesktopmanager_test.dart index 6c1a47d7c..9a2226c1b 100644 --- a/test/com/ivirtualdesktopmanager_test.dart +++ b/test/com/ivirtualdesktopmanager_test.dart @@ -33,4 +33,6 @@ void main() { test('Can instantiate IVirtualDesktopManager.moveWindowToDesktop', () { expect(virtualdesktopmanager.moveWindowToDesktop, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemclassobject_test.dart b/test/com/iwbemclassobject_test.dart index 284ea3092..78d65da47 100644 --- a/test/com/iwbemclassobject_test.dart +++ b/test/com/iwbemclassobject_test.dart @@ -94,4 +94,6 @@ void main() { test('Can instantiate IWbemClassObject.getMethodOrigin', () { expect(wbemclassobject.getMethodOrigin, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemconfigurerefresher_test.dart b/test/com/iwbemconfigurerefresher_test.dart index ec2162b82..12a19f769 100644 --- a/test/com/iwbemconfigurerefresher_test.dart +++ b/test/com/iwbemconfigurerefresher_test.dart @@ -37,4 +37,6 @@ void main() { test('Can instantiate IWbemConfigureRefresher.addEnum', () { expect(wbemconfigurerefresher.addEnum, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemcontext_test.dart b/test/com/iwbemcontext_test.dart index 166c76c9c..05a1c48e9 100644 --- a/test/com/iwbemcontext_test.dart +++ b/test/com/iwbemcontext_test.dart @@ -49,4 +49,6 @@ void main() { test('Can instantiate IWbemContext.deleteAll', () { expect(wbemcontext.deleteAll, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemhiperfenum_test.dart b/test/com/iwbemhiperfenum_test.dart index d0c95d027..adbd6b40a 100644 --- a/test/com/iwbemhiperfenum_test.dart +++ b/test/com/iwbemhiperfenum_test.dart @@ -34,4 +34,6 @@ void main() { test('Can instantiate IWbemHiPerfEnum.removeAll', () { expect(wbemhiperfenum.removeAll, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemlocator_test.dart b/test/com/iwbemlocator_test.dart index ef9248c02..db7d16c37 100644 --- a/test/com/iwbemlocator_test.dart +++ b/test/com/iwbemlocator_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IWbemLocator.connectServer', () { expect(wbemlocator.connectServer, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemobjectaccess_test.dart b/test/com/iwbemobjectaccess_test.dart index 1ea9e2a0c..802a560d9 100644 --- a/test/com/iwbemobjectaccess_test.dart +++ b/test/com/iwbemobjectaccess_test.dart @@ -52,4 +52,6 @@ void main() { test('Can instantiate IWbemObjectAccess.unlock', () { expect(wbemobjectaccess.unlock, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemrefresher_test.dart b/test/com/iwbemrefresher_test.dart index 83864aef0..6bad31c87 100644 --- a/test/com/iwbemrefresher_test.dart +++ b/test/com/iwbemrefresher_test.dart @@ -25,4 +25,6 @@ void main() { test('Can instantiate IWbemRefresher.refresh', () { expect(wbemrefresher.refresh, isA()); }); + + free(ptr); } diff --git a/test/com/iwbemservices_test.dart b/test/com/iwbemservices_test.dart index 7295f4b23..864119981 100644 --- a/test/com/iwbemservices_test.dart +++ b/test/com/iwbemservices_test.dart @@ -91,4 +91,6 @@ void main() { test('Can instantiate IWbemServices.execMethodAsync', () { expect(wbemservices.execMethodAsync, isA()); }); + + free(ptr); } diff --git a/test/com/iwebauthenticationcoremanagerinterop_test.dart b/test/com/iwebauthenticationcoremanagerinterop_test.dart index 8cc593c8b..e4e08a2db 100644 --- a/test/com/iwebauthenticationcoremanagerinterop_test.dart +++ b/test/com/iwebauthenticationcoremanagerinterop_test.dart @@ -37,4 +37,6 @@ void main() { .requestTokenWithWebAccountForWindowAsync, isA()); }); + + free(ptr); } diff --git a/test/com_network_test.dart b/test/com_network_test.dart index 478f5fe7d..abc352ead 100644 --- a/test/com_network_test.dart +++ b/test/com_network_test.dart @@ -76,6 +76,9 @@ void main() { // This is a wireless network or Ethernet network name. Assume that it's // more than one character long, and test for that. expect(descPtr.value.length, greaterThan(1)); + + SysFreeString(descPtr.value); + free(descPtr); }); }); } diff --git a/tool/win32gen/bin/generate.dart b/tool/win32gen/bin/generate.dart index edb629488..a4cb37792 100644 --- a/tool/win32gen/bin/generate.dart +++ b/tool/win32gen/bin/generate.dart @@ -241,7 +241,7 @@ void generateComApis(Scope scope, Map comTypesToGenerate) { File(classOutputPath).writeAsStringSync(DartFormatter().format(dartClass)); // Generate test only if the object has methods - if (comObject.methodProjections.isNotEmpty) { + if (interfaceProjection.methodProjections.isNotEmpty) { final dartTest = TestInterfaceProjection(typeDef, interfaceProjection); final testOutputPath = '../../test/com/${classOutputFilename}_test.dart'; diff --git a/tool/win32gen/lib/src/projection/test_interface.dart b/tool/win32gen/lib/src/projection/test_interface.dart index 39d7ae0d7..a93a2e38e 100644 --- a/tool/win32gen/lib/src/projection/test_interface.dart +++ b/tool/win32gen/lib/src/projection/test_interface.dart @@ -64,6 +64,8 @@ void main() { final $instanceName = $interfaceName(ptr); ${projection.methodProjections.map((p) => testMethod(interfaceName, instanceName, p)).join()} + + free(ptr); } """; }