From: Jindřich Makovička Date: Sun, 30 May 2021 09:40:45 +0000 (+0200) Subject: * src/pgtkselect.c: Avoid Glib assertion warnings X-Git-Tag: emacs-29.0.90~3690 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7673b6b9eb0af3add73e1614a466f142092b00aa;p=emacs.git * 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. --- diff --git a/src/pgtkselect.c b/src/pgtkselect.c index 8ab74744f39..447c839f459 100644 --- a/src/pgtkselect.c +++ b/src/pgtkselect.c @@ -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; }