diff --git a/src/backends/native/meta-kms-impl-simple.c b/src/backends/native/meta-kms-impl-simple.c index e50b1c888..b5c7bb742 100644 --- a/src/backends/native/meta-kms-impl-simple.c +++ b/src/backends/native/meta-kms-impl-simple.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2018-2019 Red Hat - * Copyright (C) 2019 DisplayLink (UK) Ltd. + * Copyright (C) 2019-2020 DisplayLink (UK) Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -660,6 +660,9 @@ process_page_flip (MetaKmsImpl *impl, meta_kms_page_flip_data_ref (page_flip_data)); } + if (ret != 0) + meta_kms_page_flip_data_unref (page_flip_data); + if (ret == -EBUSY) { CachedModeSet *cached_mode_set;