Fix memory leak when opening options
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 09:06:56 +0000 (11:06 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 09:06:56 +0000 (11:06 +0200)
* src/addin-options.cpp (open_gpgolgui): Release cArray.

src/addin-options.cpp

index 6d3da45..f81bed8 100644 (file)
@@ -119,6 +119,7 @@ open_gpgolgui (LPVOID arg)
                                  (GpgME::Context::SpawnFlags) (
                                   GpgME::Context::SpawnAllowSetFg |
                                   GpgME::Context::SpawnShowWindow));
+  release_cArray (cargs);
   if (err)
     {
       log_error ("%s:%s: Err code: %i asString: %s",