Bug fix : Fix potential dangling pointers and memory corruption. May fix recent memory corruption bugs.
Prevent dangling references to current_filter current_pin and overlay_filter

git-svn-id: http://graph-studio-next.googlecode.com/svn/trunk@141 c2f33eb2-41b2-391d-4cb4-d9d0608729ba