# Unloading the loader

**URL:** <https://forum.kirupa.com/t/unloading-the-loader/280273>\
**Category:** Uncategorized\
**Created:** [January 25, 2009, 1:53pm UTC](https://forum.kirupa.com/t/unloading-the-loader/280273 "2009-01-25T13:53:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [January 25, 2009, 1:53pm UTC](https://forum.kirupa.com/t/unloading-the-loader/280273/1 "2009-01-25T13:53:35Z")

</div>

is this the right way to do it?

```php
if (imageLoader != null){
imageLoader.unload();
}

```

or i need to say this:

```php
if (imageLoader != null){
imageLoader.unload();
imageLoader = null;
}

```

when do i need to say this?

```php
imageLoader = null;

```
