Fix software cursors

This commit is contained in:
Drew DeVault 2017-08-14 08:39:21 -04:00
parent de6f32c84e
commit 2facf1df65
4 changed files with 19 additions and 11 deletions

View file

@ -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);
}
}