summaryrefslogtreecommitdiff
path: root/src/intel_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-10 00:08:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-10 00:08:58 +0100
commit0515256490d5bcd55f85af83b84918d1bfe7f8f8 (patch)
tree851238f15ccc8d0a149b227046097e4a171a3525 /src/intel_display.c
parent2b96c18165d713cd6781dbf217ec33e11cc961bc (diff)
display: Free the EDID blob after we copy it to the output, not before.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_display.c')
-rw-r--r--src/intel_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel_display.c b/src/intel_display.c
index e22c4153..5d85baa7 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -741,11 +741,12 @@ intel_output_attach_edid(xf86OutputPtr output)
if (mon && edid_blob->length > 128)
mon->flags |= MONITOR_EDID_COMPLETE_RAWDATA;
-
- drmModeFreePropertyBlob(edid_blob);
}
xf86OutputSetEDID(output, mon);
+
+ if (edid_blob)
+ drmModeFreePropertyBlob(edid_blob);
}
static DisplayModePtr