[ostree] core: Fix a minor memory leak
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Fix a minor memory leak
- Date: Mon, 9 Apr 2012 22:43:25 +0000 (UTC)
commit 3c39a5bfa7757cce64e717ce56025ff824cb21c1
Author: Colin Walters <walters verbum org>
Date: Mon Apr 9 14:18:00 2012 -0400
core: Fix a minor memory leak
src/libostree/ostree-repo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 849af01..651a44f 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -110,7 +110,7 @@ ostree_repo_set_property(GObject *object,
{
case PROP_PATH:
/* Canonicalize */
- priv->repodir = ot_gfile_new_for_path (g_file_get_path (g_value_get_object (value)));
+ priv->repodir = ot_gfile_new_for_path (ot_gfile_get_path_cached (g_value_get_object (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]