We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c10a87 commit 540a1d7Copy full SHA for 540a1d7
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -4829,11 +4829,13 @@ void destroyWidget() {
4829
// Remove widget from hierarchy by removing it from parent container
4830
if (parent != null) {
4831
long currHandle = topHandle();
4832
- if(GTK.GTK_IS_WINDOW(currHandle)) {
+
4833
+ if (GTK.GTK_IS_WINDOW(currHandle)) {
4834
GTK4.gtk_window_destroy(currHandle);
- }
4835
- else {
4836
- OS.swt_fixed_remove(parent.parentingHandle(), fixedHandle);
+ } else {
+ if (fixedHandle != 0) {
4837
+ OS.swt_fixed_remove(parent.parentingHandle(), fixedHandle);
4838
+ }
4839
}
4840
4841
releaseHandle();
0 commit comments