Memory leak fix

Hey,

I'm using this directive in a project that builds *a lot* of structures that use scrollbars. They get destroyed and others created frequently. These two changes fixed two huge memory leaks.

Cheers,

Yonatan