Commit 7673b6b9 authored by Jindřich Makovička's avatar Jindřich Makovička Committed by Yuuki Harano
Browse files

* src/pgtkselect.c: Avoid Glib assertion warnings

Do not call g_object_get_qdata, when the clipboard has no owner,
and obj is NULL. Just return Qnil immediately.
parent ce7a78d0
Pipeline #11024 failed with stages
in 214 minutes and 3 seconds
......@@ -518,7 +518,7 @@ On Nextstep, TERMINAL is unused. */)
obj = gtk_clipboard_get_owner (cb);
return g_object_get_qdata (obj, quark_data) != NULL ? Qt : Qnil;
return obj && g_object_get_qdata (obj, quark_data) != NULL ? Qt : Qnil;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment