[libgit2-glib] Dup clone options
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Dup clone options
- Date: Wed, 20 Mar 2013 16:10:04 +0000 (UTC)
commit c3cd007d06c347b585143f878afb52e0bd767b5d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Mar 20 17:09:30 2013 +0100
Dup clone options
libgit2-glib/ggit-repository.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index 4c9c444..6a9499d 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -82,6 +82,7 @@ ggit_repository_finalize (GObject *object)
g_free (priv->url);
g_clear_object (&priv->location);
g_clear_object (&priv->workdir);
+ ggit_clone_options_free (priv->clone_options);
G_OBJECT_CLASS (ggit_repository_parent_class)->finalize (object);
}
@@ -199,7 +200,7 @@ ggit_repository_set_property (GObject *object,
priv->init = g_value_get_boolean (value);
break;
case PROP_CLONE_OPTIONS:
- priv->clone_options = g_value_get_boxed (value);
+ priv->clone_options = g_value_dup_boxed (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]