Frees the objects memory and sets its pointer to NULL
()
| 64 | * Frees the objects memory and sets its pointer to NULL |
| 65 | */ |
| 66 | public void dispose() |
| 67 | { |
| 68 | if (this.ptr != 0) |
| 69 | { |
| 70 | freeObject(this.ptr); |
| 71 | this.ptr = 0; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Abstract function -- implemented to allow for each type of Object descended |