[metacity] libmetacity: fix memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: fix memory leak
- Date: Sat, 4 Mar 2017 16:49:00 +0000 (UTC)
commit 77348e85b96b78ef330223309fdfbab94de9cf4c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 4 04:44:13 2017 +0200
libmetacity: fix memory leak
libmetacity/meta-css-provider.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libmetacity/meta-css-provider.c b/libmetacity/meta-css-provider.c
index 544d934..8322558 100644
--- a/libmetacity/meta-css-provider.c
+++ b/libmetacity/meta-css-provider.c
@@ -230,6 +230,9 @@ meta_css_provider_finalize (GObject *object)
provider = META_CSS_PROVIDER (object);
+ g_clear_pointer (&provider->name, g_free);
+ g_clear_pointer (&provider->variant, g_free);
+
if (provider->resource)
{
g_resources_unregister (provider->resource);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]