[mutter] MetaMonitorManagerKms: Don't leak tile property blob
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaMonitorManagerKms: Don't leak tile property blob
- Date: Wed, 25 Jan 2017 08:29:52 +0000 (UTC)
commit 4177d4f9f439225fdf96fb814c898ff9b8965578
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Nov 24 17:27:08 2016 +0800
MetaMonitorManagerKms: Don't leak tile property blob
Also warn when we don't understand the property blob we got.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
src/backends/native/meta-monitor-manager-kms.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index fae195f..f9f53fb 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -368,9 +368,13 @@ output_get_tile_info (MetaMonitorManagerKms *manager_kms,
&output->tile_info.loc_v_tile,
&output->tile_info.tile_w,
&output->tile_info.tile_h);
+ drmModeFreePropertyBlob (tile_blob);
if (ret != 8)
- return FALSE;
+ {
+ meta_warning ("Couldn't understand output tile property blob\n");
+ return FALSE;
+ }
return TRUE;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]