Unloading the loader

is this the right way to do it?

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

or i need to say this:

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

when do i need to say this?

imageLoader = null;