mirror of https://github.com/GNOME/gimp.git
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:
parent
b1077a903e
commit
3bf2a3c166
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue