diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index cd276f35..e342de71 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -837,8 +837,9 @@ drmmode_output_get_modes(xf86OutputPtr output) drmModeFreePropertyBlob(drmmode_output->edid_blob); drmmode_output->edid_blob = drmModeGetPropertyBlob(drmmode->fd, koutput->prop_values[i]); } - drmModeFreeProperty(props); } + if (props) + drmModeFreeProperty(props); } if (drmmode_output->edid_blob) { |