[PATCH 8/8] RRDestroyOutputProperty: Free randr property valid values

Keith Packard keithp at keithp.com
Thu Sep 17 18:14:38 PDT 2009


These were leaked when the property was destroyed.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 randr/rrproperty.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 6187b85..146facb 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -126,6 +126,8 @@ RRDestroyOutputProperty (RRPropertyPtr prop)
 	xfree(prop->current.data);
     if (prop->pending.data)
 	xfree(prop->pending.data);
+    if (prop->valid_values)
+	xfree(prop->valid_values);
     xfree(prop);
 }
 
-- 
1.6.3.3



More information about the xorg-devel mailing list