A judge has thrown out a lawsuit by a Georgia gun owner who sought to challenge a Savannah city ordinance that imposes fines and potential jail time for people who leave firearms inside unlocked cars.