From b49359314c3b59db95e1a7b5dcfd8859815f3e4a Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 3 Oct 2010 13:50:01 -0300 Subject: [PATCH] Modify jnew(FileOp) with "new FileOp". --- src/file/file.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/file/file.cpp b/src/file/file.cpp index 4f36cefbe..66501a965 100644 --- a/src/file/file.cpp +++ b/src/file/file.cpp @@ -704,7 +704,7 @@ void fop_free(FileOp *fop) if (fop->mutex) delete fop->mutex; - jfree(fop); + delete fop; } void fop_sequence_set_format_options(FileOp *fop, FormatOptions *format_options) @@ -853,9 +853,7 @@ bool fop_is_stop(FileOp *fop) static FileOp *fop_new(FileOpType type) { - FileOp *fop = jnew(FileOp, 1); - if (!fop) - return NULL; + FileOp *fop = new FileOp; fop->type = type; fop->format = NULL;