diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-10 00:08:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-10 00:08:58 +0100 |
commit | 0515256490d5bcd55f85af83b84918d1bfe7f8f8 (patch) | |
tree | 851238f15ccc8d0a149b227046097e4a171a3525 /src/intel_display.c | |
parent | 2b96c18165d713cd6781dbf217ec33e11cc961bc (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.c | 5 |
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 |