Diffusion KWin 7eafab7304cc

[platforms/drm] Return when property found

Authored by romangg on Dec 11 2019, 5:37 PM.

Description

[platforms/drm] Return when property found

When initializing a property we loop through the drmModeObjectProperties
object and search for the property by its name.

Once found we create the Property object and there should be not another one
with the same name afterwards. In any case we would leak memory. Therefore just
directly return once the property was found.

This gives us the added benefit that we can put out a warning in case the
property was not found in the loop, what should not happen with the properties
we use.

Details

Committed
romanggDec 11 2019, 5:38 PM
Parents
R108:daa1cf940271: [platforms/drm] Align plane type enum with kernel
Branches
Unknown
Tags
Unknown