diff options
-rw-r--r-- | gsk/gl/gskgltexturelibrary.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gsk/gl/gskgltexturelibrary.c b/gsk/gl/gskgltexturelibrary.c index c2ec0f84ab..6cbd7fa32a 100644 --- a/gsk/gl/gskgltexturelibrary.c +++ b/gsk/gl/gskgltexturelibrary.c @@ -112,7 +112,8 @@ gsk_gl_texture_library_real_compact (GskGLTextureLibrary *self, { if (!entry->accessed) { - gsk_gl_driver_release_texture (self->driver, entry->texture); + if (entry->texture) + gsk_gl_driver_release_texture (self->driver, entry->texture); g_hash_table_iter_remove (&iter); dropped++; } |