Duh, yes. And the comment at https://code.google.com/p/modpagespeed/source/browse/trunk/src/net/instaweb/rewriter/public/rewrite_driver_factory.h#321 says "These methods all instantiate objects and transfer ownership to the caller."