[yelp/uajain/fix-leaks] trivial: Plug memory leaks
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/uajain/fix-leaks] trivial: Plug memory leaks
- Date: Fri, 22 Mar 2019 09:50:32 +0000 (UTC)
commit 3fd6b7338714a0df03db632f96675257ec5b4a49
Author: Umang Jain <umang endlessm com>
Date: Fri Mar 22 15:19:50 2019 +0530
trivial: Plug memory leaks
libyelp/yelp-transform.c | 1 +
libyelp/yelp-uri.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/libyelp/yelp-transform.c b/libyelp/yelp-transform.c
index 0a1c8058..54f56116 100644
--- a/libyelp/yelp-transform.c
+++ b/libyelp/yelp-transform.c
@@ -206,6 +206,7 @@ yelp_transform_dispose (GObject *object)
xmlFreeDoc (priv->output);
priv->output = NULL;
}
+ g_clear_pointer (&priv->stylesheet_file, g_free);
G_OBJECT_CLASS (yelp_transform_parent_class)->dispose (object);
}
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index f20b167e..123983cb 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -720,6 +720,7 @@ resolve_data_dirs (YelpUri *ret,
else {
priv->gfile = g_file_new_for_path (filename);
priv->search_path = searchpath;
+ g_free (filename);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]