mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
51a8193c16
commit
bad1a7fd0c
@ -249,7 +249,6 @@ meta_crtc_xrandr_new (MetaGpuXrandr *gpu_xrandr,
|
|||||||
"all-transforms", all_transforms,
|
"all-transforms", all_transforms,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
crtc_xrandr = g_new0 (MetaCrtcXrandr, 1);
|
|
||||||
crtc_xrandr->transform =
|
crtc_xrandr->transform =
|
||||||
meta_monitor_transform_from_xrandr (xrandr_crtc->rotation);
|
meta_monitor_transform_from_xrandr (xrandr_crtc->rotation);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user