Fix a few memory leaks when enumerating keys with GpgME.
[claws.git] / src / plugins / pgpcore / autocompletion.c
index 286f2419468febcffbaf274f51e035573374bd35..a4f15a6b159f0f6b807de0cefda575ad3485d1eb 100644 (file)
@@ -100,7 +100,7 @@ static gboolean pgp_autocompletion_hook(gpointer source, gpointer data)
                                        i++;
                                }
                        }
-                       gpgme_key_release(key);
+                       gpgme_key_unref(key);
                }
                gpgme_release(ctx);
        }