If next_frame != NULL when the source is destroyed it now correctly frees the texture
1 files changed, 1 insertions(+), 1 deletions(-)

M src/dmabuf_source.c
M src/dmabuf_source.c +1 -1
@@ 101,7 101,7 @@ static void destroy(void* data) {
 	}
 
 	if(this->next_frame != NULL) {
-		gs_texture_destroy(this->current_frame->texture);
+		gs_texture_destroy(this->next_frame->texture);
 		eglDestroyImage(eglGetCurrentDisplay(), this->next_frame->img);
 		free(this->next_frame);
 		this->next_frame = NULL;