clear

fun clear()

Clears the reference to the activity.

This method should be called in the onDestroy method of the calling activity to prevent memory leaks.