]> git.mxchange.org Git - flightgear.git/commitdiff
Hold an owning ref to the HTTTP request.
authorJames Turner <zakalawe@mac.com>
Fri, 21 Oct 2011 11:58:19 +0000 (12:58 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 21 Oct 2011 11:58:19 +0000 (12:58 +0100)
src/Main/metar_main.cxx

index a80c1da2c0200be9a79427274288bbbbe13b880f..bf7430d127194b5223563ffcd7c7614226506300 100644 (file)
@@ -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