backends-x11: Remove g_new0 overwriting g_object_new

The object starts out right, and then gets overwritten with zeroes:

```
  crtc_xrandr = g_object_new (META_TYPE_CRTC_XRANDR,
                              "id", crtc_id,
                              "gpu", gpu,
                              "all-transforms", all_transforms,
                              NULL);

  crtc_xrandr = g_new0 (MetaCrtcXrandr, 1);
```

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1296

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1306
This commit is contained in:
Daniel van Vugt 2020-06-11 14:17:16 +08:00 committed by Jonas Ådahl
parent 51a8193c16
commit bad1a7fd0c

View File

@ -249,7 +249,6 @@ meta_crtc_xrandr_new (MetaGpuXrandr *gpu_xrandr,
"all-transforms", all_transforms,
NULL);
crtc_xrandr = g_new0 (MetaCrtcXrandr, 1);
crtc_xrandr->transform =
meta_monitor_transform_from_xrandr (xrandr_crtc->rotation);