uninitalised member in nsDMABufDevice
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox90 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
Details
Attachments
(1 file)
A member is uninitalised in nsDMABufDevice, this was identified by Coveritly:
*** CID 1467668: Uninitialized members (UNINIT_CTOR)
/widget/gtk/DMABufLibWrapper.cpp: 185 in mozilla::widget::nsDMABufDevice::nsDMABufDevice()()
179 wl_display* display = WaylandDisplayGetWLDisplay();
180 mRegistry = (void*)wl_display_get_registry(display);
181 wl_registry_add_listener((wl_registry*)mRegistry, ®istry_listener, this);
182 wl_display_roundtrip(display);
183 wl_display_roundtrip(display);
184 }
CID 1467668: Uninitialized members (UNINIT_CTOR) Non-static class member "mRegistry" is not initialized in this constructor nor in any functions that it calls.
185 }
186
187 nsDMABufDevice::~nsDMABufDevice() {
188 if (mRegistry) {
189 wl_registry_destroy((wl_registry*)mRegistry);
190 mRegistry = nullptr;
| Assignee | ||
Comment 1•4 years ago
|
||
This was only initialised if the if branch was entered in the constructor.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
| bugherder | ||
Description
•