Skip to content

quartz: Add missing g_object_ref

James Westman requested to merge jwestman/gtk:fix-dnd-macos into gtk-3-24

A g_object_ref() call was missing, sometimes causing crashes during drag-and-drop operations. The matching g_object_unref() is at gdk/gdkdnd.c:261.

The logic in this function is still wrong--it finds the wrong GdkWindow under some circumstances--but this commit fixes the crash.

Part of #1840.

Merge request reports