Fixed a memory leak in search()

Added Google as a static var.