[libgit2-glib] Release native object for credentials
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Release native object for credentials
- Date: Sat, 23 Nov 2013 00:23:55 +0000 (UTC)
commit 9322b7eebfc3bfbe1375c5809741a13fc281a874
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Nov 23 01:23:28 2013 +0100
Release native object for credentials
libgit2-glib/ggit-remote-callbacks.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-remote-callbacks.c b/libgit2-glib/ggit-remote-callbacks.c
index 4928d26..7302fb0 100644
--- a/libgit2-glib/ggit-remote-callbacks.c
+++ b/libgit2-glib/ggit-remote-callbacks.c
@@ -96,7 +96,8 @@ credentials_wrap (git_cred **cred, const char *url, const char *username_from_ur
if (mcred != NULL)
{
- *cred = _ggit_native_get (mcred);
+ *cred = _ggit_native_release (mcred);
+ g_object_unref (mcred);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]