[libgit2-glib] Use correct free functions
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Use correct free functions
- Date: Wed, 26 Feb 2020 10:10:42 +0000 (UTC)
commit 6d4cd3304acb834fdcbd95505f9453fa45f4e930
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Wed Feb 26 10:12:52 2020 +0100
Use correct free functions
libgit2-glib/ggit-cred-plaintext.c | 4 ++--
libgit2-glib/ggit-cred-ssh-interactive.c | 4 ++--
libgit2-glib/ggit-cred-ssh-key-from-agent.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-cred-plaintext.c b/libgit2-glib/ggit-cred-plaintext.c
index 1f2390f..b55d9c9 100644
--- a/libgit2-glib/ggit-cred-plaintext.c
+++ b/libgit2-glib/ggit-cred-plaintext.c
@@ -180,9 +180,9 @@ ggit_cred_plaintext_initable_init (GInitable *initable,
_ggit_native_set (initable,
cred,
#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 99)
- (GDestroyNotify)git_credential_free (cred));
+ (GDestroyNotify)git_credential_free);
#else
- (GDestroyNotify)git_cred_free (cred));
+ (GDestroyNotify)git_cred_free);
#endif
return TRUE;
diff --git a/libgit2-glib/ggit-cred-ssh-interactive.c b/libgit2-glib/ggit-cred-ssh-interactive.c
index 79e5a4e..4f60f8b 100644
--- a/libgit2-glib/ggit-cred-ssh-interactive.c
+++ b/libgit2-glib/ggit-cred-ssh-interactive.c
@@ -247,9 +247,9 @@ ggit_cred_ssh_interactive_initable_init (GInitable *initable,
_ggit_native_set (initable,
cred,
#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 99)
- (GDestroyNotify)git_credential_free (cred));
+ (GDestroyNotify)git_credential_free);
#else
- (GDestroyNotify)git_cred_free (cred));
+ (GDestroyNotify)git_cred_free);
#endif
return TRUE;
diff --git a/libgit2-glib/ggit-cred-ssh-key-from-agent.c b/libgit2-glib/ggit-cred-ssh-key-from-agent.c
index 0de589f..b8a6bcf 100644
--- a/libgit2-glib/ggit-cred-ssh-key-from-agent.c
+++ b/libgit2-glib/ggit-cred-ssh-key-from-agent.c
@@ -156,9 +156,9 @@ ggit_cred_ssh_key_from_agent_initable_init (GInitable *initable,
_ggit_native_set (initable,
cred,
#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 99)
- (GDestroyNotify)git_credential_free (cred));
+ (GDestroyNotify)git_credential_free);
#else
- (GDestroyNotify)git_cred_free (cred));
+ (GDestroyNotify)git_cred_free);
#endif
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]