Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed Jul 26, 2021
1 parent 3f96f8b commit f6da016
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ pub struct Camera {
impl Drop for Camera {
fn drop(&mut self) {
unsafe {
crate::gphoto2::gp_camera_unref(self.camera);
crate::gphoto2::gp_camera_exit(self.camera, self.context.context);
crate::gphoto2::gp_camera_free(self.camera);
crate::gphoto2::gp_context_unref(self.context.context);
}
}
Expand Down

0 comments on commit f6da016

Please sign in to comment.