Signed-off-by: Mikhail Gusarov <[email protected]>
---
 randr/rrproperty.c |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index c4dcb1a..97e063c 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -89,15 +89,6 @@ RRDeleteAllOutputProperties(RROutputPtr output)
     }
 }
 
-static void
-RRInitOutputPropertyValue (RRPropertyValuePtr property_value)
-{
-    property_value->type = None;
-    property_value->format = 0;
-    property_value->size = 0;
-    property_value->data = NULL;
-}
-
 static RRPropertyPtr
 RRCreateOutputProperty (Atom property)
 {
@@ -356,8 +347,11 @@ RRConfigureOutputProperty (RROutputPtr output, Atom 
property,
      */
     if (prop->is_pending && !pending)
     {
-       free(prop->pending.data);
-       RRInitOutputPropertyValue (&prop->pending);
+        free(prop->pending.data);
+        property_value->type = None;
+        property_value->format = 0;
+        property_value->size = 0;
+        property_value->data = NULL;
     }
 
     prop->is_pending = pending;
-- 
1.7.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to