diff options
author | Keith Packard <keithp@koto.keithp.com> | 2007-08-07 12:44:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@koto.keithp.com> | 2007-08-07 12:47:18 -0700 |
commit | 2b93cbb5f8bac9b1b75f723baaa728430b5fefff (patch) | |
tree | 59e3628280d62a64edd995b9637d770418f028b3 /randr | |
parent | fef4c7a6f1a1ef34233b36137bb66d9a657307fb (diff) |
Decrement mode count when removing RandR output mode.
Removing an output mode without decrementing the mode count scrambles the
output mode array badly.
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rroutput.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/randr/rroutput.c b/randr/rroutput.c index 1e1cfa5a9..a67e4931a 100644 --- a/randr/rroutput.c +++ b/randr/rroutput.c @@ -249,6 +249,7 @@ RROutputDeleteUserMode (RROutputPtr output, memmove (output->userModes + m, output->userModes + m + 1, (output->numUserModes - m - 1) * sizeof (RRModePtr)); + output->numUserModes--; RRModeDestroy (mode); return Success; } |