app: don't dereference NULL image pointer

windows_menu_display_query_tooltip(): bail out if "image" is
NULL. Can't happen currently but did happen temporarily while hacking
on related code. Better safe than sorry.
This commit is contained in:
Michael Natterer 2019-05-05 15:36:07 +02:00
parent b1077a903e
commit 3bf2a3c166
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ windows_menu_display_query_tooltip (GtkWidget *widget,
gint width;
gint height;
if (! image)
return;
text = gtk_widget_get_tooltip_text (widget);
gtk_tooltip_set_text (tooltip, text);
g_free (text);