fix the error/memleak in Firefox 3.0.x and 25.0.1 concerning the getBBox method