<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css">
<title>
Gambas Documentation - _free
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../../help+en"><img class="flag" alt="Home" border="0" src="../../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../special+en">Up</a>&nbsp;
<a href="_exit+en">Previous</a>&nbsp;
<a href="_get+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
_free
</h1>
<div class="black"><font size="-2"><b>Declaration</b></font></div>
<pre class="syntax">GB_METHOD ( &quot;_free&quot; , NULL , MyClass_free , NULL )</pre><p>

The <tt>_free</tt> method is called when an object of the class is destroyed.
<p>
This method take no parameter and returns nothing.
<p>
Use this method to cleanup the object. For example, is the object structure
contains references to strings or objects, you must release them, otherwise
you will create memory leaks.
<p>
<hr><b>See also</b><br>
<a href="../special+en">Special Methods</a>&nbsp; <a href="../method+en">Methods Implementation</a>&nbsp;

</div>
</body>
</html>

