diff mbox

intel driver vs. libdrm and NULL pointer handling

Message ID 20100317142501.GA28139@suse.de (mailing list archive)
State Deferred, archived
Headers show

Commit Message

Matthias Hopf March 17, 2010, 2:25 p.m. UTC
None
diff mbox

Patch

From c6f806d4b16a010a27a63352d5e29e55e522098e Mon Sep 17 00:00:00 2001
From: Matthias Hopf <mhopf@suse.de>
Date: Wed, 17 Mar 2010 15:13:51 +0100
Subject: [PATCH] Clear drmmode_output->mode_output in drmmode_output_destroy().

---
 src/drmmode_display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index ae200ca..ec505f3 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;
-- 
1.6.0.2