mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1883209 - Destroy wayland annotation object. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D203932
This commit is contained in:
parent
9c87b856f6
commit
344c9635c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user