(define-class (<g-mount-operation> (constructor ()))
(<gio>))
-(define-method initialize-instance ((gmount <g-mount-operation>))
- (call-next-method gmount)
- (let ((alien (gobject-alien gmount)))
+(define-method initialize-instance ((gmountop <g-mount-operation>))
+ (call-next-method gmountop)
+ (add-gc-cleanup gmountop (make-gmountop-cleanup (gio-cleanup-info gmountop)))
+ (let ((alien (gobject-alien gmountop)))
(set-alien/ctype! alien '|GMountOperation|)
(C-call "g_mount_operation_new" alien)
- (error-if-null alien "Could not create:" gmount)))
+ (error-if-null alien "Could not create:" gmountop)))
+
+(define (make-gmountop-cleanup gio-info)
+ (named-lambda (gmountop-cleanup)
+ (cleanup-gio gio-info)))
(define (gfile-mount gfile)
(let* ((mount-op (make-g-mount-operation))