Commit c3ae8d10 authored by Scott Moreau's avatar Scott Moreau

earth: Fix crash when png plugin is unloaded

parent 2c5823fa
......@@ -215,8 +215,11 @@ LoadTexture_t (void* threaddata)
compLogMessage ("earth", CompLogLevelInfo,
"Loaded texture %s", texfile);
else
{
compLogMessage ("earth", CompLogLevelWarn,
"Failed to load %s", texfile);
es->imagedata[num].image = NULL;
}
free (texfile);
......
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