Bug 1883209 - Destroy wayland annotation object. r=stransky

Differential Revision: https://phabricator.services.mozilla.com/D203932
This commit is contained in:
Emilio Cobos Álvarez 2024-03-11 17:43:38 +00:00
parent 9c87b856f6
commit 344c9635c8

View File

@ -20,6 +20,7 @@
#include "mozilla/StaticPrefs_widget.h"
#include "DBusMenu.h"
#include "nsLayoutUtils.h"
#include "nsGtkUtils.h"
#include "nsGtkKeyUtils.h"
#include <dlfcn.h>
@ -813,7 +814,11 @@ RefPtr<DBusMenuBar> DBusMenuBar::Create(dom::Element* aElement) {
return self;
}
DBusMenuBar::~DBusMenuBar() = default;
DBusMenuBar::~DBusMenuBar() {
# ifdef MOZ_WAYLAND
MozClearPointer(mAnnotation, xdg_dbus_annotation_v1_destroy);
# endif
}
#endif
} // namespace mozilla::widget