b51580
diff -up libproxy-0.4.11/libproxy/extension_pacrunner.cpp.crash libproxy-0.4.11/libproxy/extension_pacrunner.cpp
b51580
--- libproxy-0.4.11/libproxy/extension_pacrunner.cpp.crash	2010-07-29 08:14:59.000000000 -0400
b51580
+++ libproxy-0.4.11/libproxy/extension_pacrunner.cpp	2013-11-11 15:23:56.987266457 -0500
b51580
@@ -22,20 +22,10 @@ using namespace libproxy;
b51580
 
b51580
 pacrunner::pacrunner(string, const url&) {}
b51580
 
b51580
-pacrunner_extension::pacrunner_extension() {
b51580
-	this->pr = NULL;
b51580
-}
b51580
+pacrunner_extension::pacrunner_extension() {}
b51580
 
b51580
-pacrunner_extension::~pacrunner_extension() {
b51580
-	if (this->pr) delete this->pr;
b51580
-}
b51580
+pacrunner_extension::~pacrunner_extension() {}
b51580
 
b51580
 pacrunner* pacrunner_extension::get(string pac, const url& pacurl) throw (bad_alloc) {
b51580
-	if (this->pr) {
b51580
-		if (this->last == pac)
b51580
-			return this->pr;
b51580
-		delete this->pr;
b51580
-	}
b51580
-
b51580
-	return this->pr = this->create(pac, pacurl);
b51580
+	return this->create(pac, pacurl);
b51580
 }
b51580
diff -up libproxy-0.4.11/libproxy/proxy.cpp.crash libproxy-0.4.11/libproxy/proxy.cpp
b51580
--- libproxy-0.4.11/libproxy/proxy.cpp.crash	2013-11-11 15:25:27.309271353 -0500
b51580
+++ libproxy-0.4.11/libproxy/proxy.cpp	2013-11-11 15:25:31.569271584 -0500
b51580
@@ -416,7 +416,9 @@ void proxy_factory::run_pac(url &realurl
b51580
 
b51580
 		/* Run the PAC, but only try one PACRunner */
b51580
 		if (debug) cerr << "Using pacrunner: " << typeid(*pacrunners[0]).name() << endl;
b51580
-		string pacresp = pacrunners[0]->get(this->pac, this->pacurl->to_string())->run(realurl);
b51580
+		pacrunner* runner = pacrunners[0]->get(this->pac, this->pacurl->to_string());
b51580
+		string pacresp = runner->run(realurl);
b51580
+		delete runner;
b51580
 		if (debug) cerr << "Pacrunner returned: " << pacresp << endl;
b51580
 		format_pac_response(pacresp, response);
b51580
 	}