VirtualBox

Changeset 40674 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Mar 28, 2012 12:05:43 PM (13 years ago)
Author:
vboxsync
Message:

glue/java: disconnect on object finalization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r39980 r40674  
    40214021    public void cleanup()
    40224022    {
     4023        disconnect();
    40234024        deinitPerThread();
    40244025    }
     
    40544055    public void waitForEvents(long tmo)
    40554056    {
     4057    }
     4058   
     4059    protected void finalize() throws Throwable
     4060    {
     4061        try {
     4062            cleanup();
     4063        } catch(Exception e) {
     4064        }
     4065        finally {
     4066            super.finalize();
     4067        }
    40564068    }
    40574069}
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