diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-30 11:27:57 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-01-07 09:57:04 -0200 |
commit | 02ad7e04dd0ddbb77e928330f8490680f1e200cc (patch) | |
tree | 47e5f08713c85ff54d0d14e60f6f025c45fcc659 /tests/kms_flip.c | |
parent | 329faeccf72ce8f289004809d5e3245cb6620ab9 (diff) |
tests/kms_flip: don't leak the connector when setting DPMS
Caught by Valgrind.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rw-r--r-- | tests/kms_flip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 6a116a94..5b1ce9d3 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -295,6 +295,8 @@ static void dpms_off_other_outputs(struct test_output *o) set_connector_dpms(connector, DRM_MODE_DPMS_ON); set_connector_dpms(connector, DRM_MODE_DPMS_OFF); + + drmModeFreeConnector(connector); next: ; } |