VirtualBox

Changeset 102642 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Dec 19, 2023 3:17:07 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160804
Message:

libs/xpcom: Call Unload() in the nsDll destructor to prevent memory leaks on shutdown. We don't want to enable this for release builds (yet), as this needs more testing and/or debugging first. Also needs IPRT_WITH_GCC_SANITIZER enabled. bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/components/xcDll.cpp

    r102334 r102642  
    8787    // - static dtors
    8888    // Hence turn it back on after all the above have been removed.
    89     //Unload();
     89#if defined(DEBUG) && defined(IPRT_WITH_GCC_SANITIZER)
     90    /* Although this looks like it's what we should be doing here, we don't want to enable this for release builds (yet).
     91     * Needs more testing and/or debugging first. See @bugref{10545c6}. */
     92    Unload();
     93#endif
    9094    //#endif
    9195}
Note: See TracChangeset for help on using the changeset viewer.

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