aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r--render/wlr_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c
index d2bcca07..72d56c8f 100644
--- a/render/wlr_texture.c
+++ b/render/wlr_texture.c
@@ -9,7 +9,7 @@ void wlr_texture_init(struct wlr_texture *texture,
}
void wlr_texture_destroy(struct wlr_texture *texture) {
- if (texture->impl->destroy) {
+ if (texture && texture->impl->destroy) {
texture->impl->destroy(texture);
}
}