diff options
-rw-r--r-- | types/wlr_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_buffer.c b/types/wlr_buffer.c index ccff7b46..673d7088 100644 --- a/types/wlr_buffer.c +++ b/types/wlr_buffer.c @@ -97,6 +97,7 @@ struct wlr_buffer *wlr_buffer_create(struct wlr_renderer *renderer, struct wlr_buffer *buffer = calloc(1, sizeof(struct wlr_buffer)); if (buffer == NULL) { + wlr_texture_destroy(texture); return NULL; } buffer->resource = resource; |