summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2010-03-17 15:13:51 +0100
committerCarl Worth <cworth@cworth.org>2010-03-22 11:48:44 -0700
commitd1dfab6b1649214177435629d8e85239dbe44d89 (patch)
tree2a5d3302904960cdd0dfab1cf17fd4803c0ff1f7 /src
parent10cd04a84bcb6313903fc23b2d7791658ebc6b8e (diff)
Clear drmmode_output->mode_output in drmmode_output_destroy().
Diffstat (limited to 'src')
-rw-r--r--src/drmmode_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 0172a2eb..1348e086 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -817,6 +817,7 @@ drmmode_output_destroy(xf86OutputPtr output)
}
xfree(drmmode_output->props);
drmModeFreeConnector(drmmode_output->mode_output);
+ drmmode_output->mode_output = NULL;
if (drmmode_output->private_data) {
xfree(drmmode_output->private_data);
drmmode_output->private_data = NULL;