Bug 573697 - [GTK3] MenuBar leaks native memory

This change ensures the GTK+ accelerator group allocated by Decorations
is released upon destruction.

In addition, the accelerator group is removed from menu items, upon
Decorations.destroyAccelGroup() (and prior to recreating it during
Decorations.fixAccelGroup()). This prevents a crash in GTK+ code, due to
trying to use the now released handle.

Manual snippets are also added to the set of GTK bug snippets, for
future manual validation.

Change-Id: Ic3befc6b627bc78393154a47ecc54b372e062d3a
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/180940
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
4 files changed
tree: be1ee2d486f6852bd10ab69f928f8666291ea859
  1. .gitignore
  5. README.md
  6. bundles/
  7. container/
  8. examples/
  9. features/
  10. local-build/
  11. pom.xml
  12. tests/

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).


Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!