VirtualBox

Ignore:
Timestamp:
May 22, 2017 2:58:05 PM (8 years ago)
Author:
vboxsync
Message:

HostServices/SharedFolders: call pfnUnload() after disconnecting from the shared folder to free memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp

    r66099 r67020  
    848848    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    849849    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     850    AssertReleaseRC(svcTable.pfnUnload(NULL));
    850851    RTTestGuardedFree(hTest, svcTable.pvService);
    851852    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile,
     
    882883    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    883884    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     885    AssertReleaseRC(svcTable.pfnUnload(NULL));
    884886    RTTestGuardedFree(hTest, svcTable.pvService);
    885887    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile,
     
    917919    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    918920    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     921    AssertReleaseRC(svcTable.pfnUnload(NULL));
    919922    RTTestGuardedFree(hTest, svcTable.pvService);
    920923    RTTEST_CHECK_MSG(hTest, g_testRTDirClosepDir == pDir, (hTest, "pDir=%p\n", g_testRTDirClosepDir));
     
    952955    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
    953956    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     957    AssertReleaseRC(svcTable.pfnUnload(NULL));
    954958    RTTestGuardedFree(hTest, svcTable.pvService);
    955959}
     
    985989    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
    986990    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     991    AssertReleaseRC(svcTable.pfnUnload(NULL));
    987992    RTTestGuardedFree(hTest, svcTable.pvService);
    988993}
     
    10091014    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    10101015    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1016    AssertReleaseRC(svcTable.pfnUnload(NULL));
    10111017    RTTestGuardedFree(hTest, svcTable.pvService);
    10121018    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
     
    10421048    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    10431049    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1050    AssertReleaseRC(svcTable.pfnUnload(NULL));
    10441051    RTTestGuardedFree(hTest, svcTable.pvService);
    10451052    RTTEST_CHECK_MSG(hTest, g_testRTDirClosepDir == pDir, (hTest, "pDir=%p\n", g_testRTDirClosepDir));
     
    10821089    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    10831090    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1091    AssertReleaseRC(svcTable.pfnUnload(NULL));
    10841092    RTTestGuardedFree(hTest, svcTable.pvService);
    10851093    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
     
    11241132    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    11251133    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1134    AssertReleaseRC(svcTable.pfnUnload(NULL));
    11261135    RTTestGuardedFree(hTest, svcTable.pvService);
    11271136    RTTEST_CHECK_MSG(hTest, g_testRTDirClosepDir == pDir, (hTest, "pDir=%p\n", g_testRTDirClosepDir));
     
    11661175    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    11671176    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1177    AssertReleaseRC(svcTable.pfnUnload(NULL));
    11681178    RTTestGuardedFree(hTest, svcTable.pvService);
    11691179    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
     
    11981208    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    11991209    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1210    AssertReleaseRC(svcTable.pfnUnload(NULL));
    12001211    RTTestGuardedFree(hTest, svcTable.pvService);
    12011212    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
     
    12431254    unmapAndRemoveMapping(hTest, &svcTable, Root, "testname");
    12441255    AssertReleaseRC(svcTable.pfnDisconnect(NULL, 0, svcTable.pvService));
     1256    AssertReleaseRC(svcTable.pfnUnload(NULL));
    12451257    RTTestGuardedFree(hTest, svcTable.pvService);
    12461258    RTTEST_CHECK_MSG(hTest, g_testRTFileCloseFile == hcFile, (hTest, "File=%u\n", g_testRTFileCloseFile));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette