Actually manage memory in the old-style AOS logging

LeakSanitizer should be happy with it now. It's also still just as
thread-safe.

Change-Id: Id09a0349657cf4f719267b053f0ea3d8ec366256
diff --git a/aos/vision/debug/debug_framework.cc b/aos/vision/debug/debug_framework.cc
index 47e0856..0b0d2c7 100644
--- a/aos/vision/debug/debug_framework.cc
+++ b/aos/vision/debug/debug_framework.cc
@@ -62,9 +62,8 @@
     }
 
     // Pass along the set exposure so that users can acceess it.
-    filter->InstallSetExposure([this](uint32_t abs_exp) {
-        this->SetExposure(abs_exp);
-    });
+    filter->InstallSetExposure(
+        [this](uint32_t abs_exp) { this->SetExposure(abs_exp); });
   }
 
   // This the first stage in the pipeline that takes
@@ -151,8 +150,6 @@
 void DebugFrameworkMain(int argc, char **argv, FilterHarness *filter,
                         CameraParams camera_params) {
   ::aos::logging::Init();
-  ::aos::logging::SetImplementation(
-      new ::aos::logging::StreamLogImplementation(stdout));
 
   gtk_init(&argc, &argv);
 
diff --git a/aos/vision/tools/camera_primer.cc b/aos/vision/tools/camera_primer.cc
index e1d5fc5..027f9dc 100644
--- a/aos/vision/tools/camera_primer.cc
+++ b/aos/vision/tools/camera_primer.cc
@@ -27,8 +27,6 @@
 // target_sender
 int main(int argc, char **argv) {
   ::aos::logging::Init();
-  ::aos::logging::SetImplementation(
-      new ::aos::logging::StreamLogImplementation(stdout));
 
   aos::vision::CameraParams params;
 
diff --git a/aos/vision/tools/jpeg_vision_test.cc b/aos/vision/tools/jpeg_vision_test.cc
index 4ba290c..738713b 100644
--- a/aos/vision/tools/jpeg_vision_test.cc
+++ b/aos/vision/tools/jpeg_vision_test.cc
@@ -107,13 +107,11 @@
   int dx = 0;
   int dy = 0;
 };
-}  // namespace aos
 }  // namespace vision
+}  // namespace aos
 
 int main(int argc, char *argv[]) {
   ::aos::logging::Init();
-  ::aos::logging::SetImplementation(
-      new ::aos::logging::StreamLogImplementation(stdout));
   aos::events::EpollLoop loop;
   gtk_init(&argc, &argv);