From 1b3ea65b5e41fe1fd29fb8415527331a3627aa36 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 21 Oct 2011 12:58:19 +0100 Subject: [PATCH] Hold an owning ref to the HTTTP request. --- src/Main/metar_main.cxx | 1 + 1 file changed, 1 insertion(+) 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