Revert free of current_image

This commit is contained in:
Mr-Dave
2022-05-02 21:22:24 -06:00
parent 2db9e435b2
commit 9925e251e8

View File

@@ -115,10 +115,11 @@ static void mlp_ring_destroy(struct ctx_cam *cam)
cam->imgs.image_ring = NULL;
}
if (cam->current_image != NULL) {
free(cam->current_image);
cam->current_image = NULL;
}
/*
* current_image is an alias from the pointers above which have
* already been freed so we just set it equal to NULL here
*/
cam->current_image = NULL;
cam->imgs.ring_size = 0;
}