X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=examples%2Fgoogle.ml;h=d21d27fd84b42d022c005a17e021e85c85b2e840;hb=1a03f5caec9e996f5929dbe34cf85c54f7ee4893;hp=2e8ca4068b14db34cb9b7a18786771faebae2baf;hpb=9e88eacb7d2a8883900fba0c8abedc26c7510d98;p=perl4caml.git diff --git a/examples/google.ml b/examples/google.ml index 2e8ca40..d21d27f 100644 --- a/examples/google.ml +++ b/examples/google.ml @@ -1,7 +1,7 @@ (* Example program which uses Net::Google to query Google. * You will need to have a Google API key in ~/.googlekey for this to work. * Copyright (C) 2003 Merjis Ltd. - * $Id: google.ml,v 1.2 2003-10-15 16:51:12 rich Exp $ + * $Id: google.ml,v 1.3 2003-10-16 11:03:52 rich Exp $ *) open Printf @@ -31,4 +31,7 @@ let () = ) search#results; (* Destroy the Perl interpreter. *) - Perl.destroy (Perl.current_interpreter ()) + Perl.destroy (Perl.current_interpreter ()); + + (* Perform a full collection - good way to find GC/allocation bugs. *) + Gc.full_major ()