add extra NULL check for tooltipsdata to avoid code fiddling with

2007-09-24  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltips.c (gtk_tooltips_set_tip): add extra NULL check
	for tooltipsdata to avoid code fiddling with active_tips_data
	from crashing.  (Fixes #460194, Peter Wright, Matthijs De Smedt).


svn path=/trunk/; revision=18864
This commit is contained in:
Kristian Rietveld 2007-09-24 18:23:01 +00:00 committed by Kristian Rietveld
parent 7ca7038db4
commit 37c5790a7f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-09-24 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltips.c (gtk_tooltips_set_tip): add extra NULL check
for tooltipsdata to avoid code fiddling with active_tips_data
from crashing. (Fixes #460194, Peter Wright, Matthijs De Smedt).
2007-09-24 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/file/gtkprintbackendfile.c: Correct a comment.

View File

@ -230,6 +230,7 @@ gtk_tooltips_set_tip (GtkTooltips *tooltips,
}
if (tooltips->active_tips_data
&& tooltipsdata
&& tooltips->active_tips_data->widget == widget
&& GTK_WIDGET_DRAWABLE (tooltips->active_tips_data->widget))
{