Commit 3bf2a3c1 authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent b1077a90
......@@ -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);
......
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