diff options
author | David Reveman <davidr@novell.com> | 2008-01-25 14:43:32 -0500 |
---|---|---|
committer | David Reveman <davidr@novell.com> | 2008-01-25 14:43:32 -0500 |
commit | 4ad493c4d89536a16fc2577e9280a9b63cf0b248 (patch) | |
tree | f363d650c7a0850c3982d142ba6a6b6e67e777cb | |
parent | 1699869562b443fb32e582deef075f4d6b318ef0 (diff) |
Free screen resources when done using them.
-rw-r--r-- | hw/xgl/glx/xglx.c | 4 |
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); |