SSLButton: fix memleak

(cherry picked from commit 9b88c7d3c1d11381575febde3d99bfc0909f9483)
uploading: make sure to cast to uint64 to avoid integer overflow

(cherry picked from commit 302499b4838f64240d53d5832fcff62c09d7be5a)