Fix missing NULL checks when reading the colour value of compiler output messages.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3595 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
a6eda7c875
commit
f63a63a008
@ -3,6 +3,9 @@
|
|||||||
* configure.in, plugins/Makefile.am:
|
* configure.in, plugins/Makefile.am:
|
||||||
Enable socket support when cross-compiling.
|
Enable socket support when cross-compiling.
|
||||||
Enable plugin compilation when cross-compiling.
|
Enable plugin compilation when cross-compiling.
|
||||||
|
* src/msgwindow.c:
|
||||||
|
Fix missing NULL checks when reading the colour value of compiler
|
||||||
|
output messages.
|
||||||
|
|
||||||
|
|
||||||
2009-02-20 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
2009-02-20 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
||||||
|
@ -586,8 +586,9 @@ gboolean msgwin_goto_compiler_file_line()
|
|||||||
{
|
{
|
||||||
/* if the item is not coloured red, it's not an error line */
|
/* if the item is not coloured red, it's not an error line */
|
||||||
gtk_tree_model_get(model, &iter, 0, &color, -1);
|
gtk_tree_model_get(model, &iter, 0, &color, -1);
|
||||||
if (! gdk_color_equal(color, &color_error))
|
if (color == NULL || ! gdk_color_equal(color, &color_error))
|
||||||
{
|
{
|
||||||
|
if (color != NULL)
|
||||||
gdk_color_free(color);
|
gdk_color_free(color);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user