postgis: clear the result before throwing

This commit is contained in:
Dane Springmeyer 2011-04-11 22:11:14 +00:00
parent 7191d56a16
commit 9bfecac34e

View file

@ -93,7 +93,9 @@ class Connection
}
s << "\nFull sql was: '" << sql << "'\n";
}
}
if (result)
PQclear(result);
throw mapnik::datasource_exception( s.str() );
}