Skip to content

Commit

Permalink
Cleanup images
Browse files Browse the repository at this point in the history
  • Loading branch information
ringlej committed Jul 31, 2023
1 parent ae14079 commit 6b91dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions c_src/image/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ void image_free(void* v_ctx, image_t* p_image)
tommy_hashlin_remove_existing(&images, &p_image->node);
image_ops_delete(v_ctx, p_image->image_id);

if (p_image->p_pixels) {
free(p_image->p_pixels);
}

free(p_image);
}
}
Expand Down Expand Up @@ -190,7 +186,6 @@ void put_image(int* p_msg_length, void* v_ctx)
// if the height or width have changed, then we fail
if (p_image
&& ((width != p_image->width) || (height != p_image->height))) {
// send_puts("Cannot change image size");
log_error("Cannot change image size");
free(p_temp_id);
return;
Expand Down
2 changes: 2 additions & 0 deletions c_src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ int main(int argc, char **argv)
device_poll();
}

reset_images(data.v_ctx);

device_close(&g_device_info);
return 0;
}
Expand Down

0 comments on commit 6b91dc0

Please sign in to comment.