From: James Turner Date: Fri, 21 Oct 2011 11:58:19 +0000 (+0100) Subject: Hold an owning ref to the HTTTP request. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b3ea65b5e41fe1fd29fb8415527331a3627aa36;p=flightgear.git Hold an owning ref to the HTTTP request. --- diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index a80c1da2c..bf7430d12 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -576,6 +576,7 @@ int main(int argc, char *argv[]) try { MetarRequest* mr = new MetarRequest(argv[i]); + HTTP::Request_ptr own(mr); http.makeRequest(mr); // spin until the request completes, fails or times out