SeleniumHQ/selenium — pull request #290 by dbrgn (2014-11-25 16:06:16+00:00)
Title: Set default value for PhantomJS `Service.process` reference

In the PhantomJS `Service` class, the `process` attribute can be undefined if something goes wrong. In that case, the destructor (`__del__`) raises an `AttributeError`. This PR should fix that.

I signed the CLA.

PS: I assume the original author knew about that, but a `__del__` method prevents the garbage collector from cleaning up the memory, if it's not done manually. Also, it is not guaranteed that `__del__` is called: http://stackoverflow.com/a/1481512/284318