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
This commit is contained in:
Jonas Ådahl 2016-11-24 17:27:08 +08:00
parent 9b64e09a24
commit 4177d4f9f4

View File

@ -368,9 +368,13 @@ output_get_tile_info (MetaMonitorManagerKms *manager_kms,
&output->tile_info.loc_v_tile, &output->tile_info.loc_v_tile,
&output->tile_info.tile_w, &output->tile_info.tile_w,
&output->tile_info.tile_h); &output->tile_info.tile_h);
drmModeFreePropertyBlob (tile_blob);
if (ret != 8) if (ret != 8)
return FALSE; {
meta_warning ("Couldn't understand output tile property blob\n");
return FALSE;
}
return TRUE; return TRUE;
} }
else else