<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Destructor (computer programming) - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Destructor_(computer_programming)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Destructor_%28computer_programming%29&amp;p=3">3.Next</a>
</p>
<p>leaves the scope, when it is embedded in another object whose lifetime ends, or when it was <a href="page.php?w=Memory_management">allocated dynamically</a> and is released explicitly. Its main purpose is to free the <a href="page.php?w=Resource_%28computer_science%29">resources</a> (memory allocations, open files or sockets, <a href="page.php?w=database_connection">database connection</a>s, <a href="page.php?w=Lock_%28computer_science%29">resource locks</a>, etc.) which were acquired by the object during its life and/or deregister from other</p><p>
<a accesskey="1" href="page.php?w=Destructor_(computer_programming)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Destructor_%28computer_programming%29&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
