[mutter] xprops: Free counter_list_from_results() return value with g_free()
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] xprops: Free counter_list_from_results() return value with g_free()
- Date: Thu, 3 Oct 2019 17:27:58 +0000 (UTC)
commit 488991b0f6f6cca3cfc780407d99855477d7ae1b
Author: Hans de Goede <hdegoede redhat com>
Date: Mon Sep 9 16:23:04 2019 +0200
xprops: Free counter_list_from_results() return value with g_free()
counter_list_from_results directly passes through the results->prop
pointer which is g_malloc memory, so we should free the buffer it
returns with g_free.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/786
src/x11/xprops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index 9e66fd5ad..3632877da 100644
--- a/src/x11/xprops.c
+++ b/src/x11/xprops.c
@@ -1109,7 +1109,7 @@ free_value (MetaPropValue *value)
case META_PROP_VALUE_SYNC_COUNTER:
break;
case META_PROP_VALUE_SYNC_COUNTER_LIST:
- free (value->v.xcounter_list.counters);
+ g_free (value->v.xcounter_list.counters);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]