summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2008-01-25 14:43:32 -0500
committerDavid Reveman <davidr@novell.com>2008-01-25 14:43:32 -0500
commit4ad493c4d89536a16fc2577e9280a9b63cf0b248 (patch)
treef363d650c7a0850c3982d142ba6a6b6e67e777cb
parent1699869562b443fb32e582deef075f4d6b318ef0 (diff)
Free screen resources when done using them.
-rw-r--r--hw/xgl/glx/xglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xgl/glx/xglx.c b/hw/xgl/glx/xglx.c
index 74fc8bdf6..ca0f7f204 100644
--- a/hw/xgl/glx/xglx.c
+++ b/hw/xgl/glx/xglx.c
@@ -649,8 +649,6 @@ xglxRRCrtcSet (ScreenPtr pScreen,
return FALSE;
}
- XRRFreeScreenResources (r);
-
for (i = 0; i < numOutputs; i++)
o[i] = (RROutput) outputs[i]->devPrivate;
@@ -662,6 +660,8 @@ xglxRRCrtcSet (ScreenPtr pScreen,
rotation,
o, numOutputs);
+ XRRFreeScreenResources (r);
+
if (o)
free (o);