Use strdup not qstrdup to avoid mlt_profile_close free'ing memory allocated…

Authored by coconnor on Dec 13 2018, 6:53 AM.

Description

Use strdup not qstrdup to avoid mlt_profile_close free'ing memory allocated with new.

This issue was identified using valgrind. Output:

200828== Mismatched free() / delete / delete []

200828== at 0x4C2E668: free (in

/nix/store/270csszcn55xv52pjmvgr6cgy5grc8y5-valgrind-3.14.0/lib/valgrind/vgpreload_memcheck-amd64-linux.so)

200828== by 0xAFCBFD0: mlt_profile_close (in

/nix/store/l1dy6sf0sf6j7r7m45sg0xa8i8fxw4zq-mlt-6.13.0/lib/libmlt.so.6.13.0)

200828== by 0x7E52F8: GLWidget::~GLWidget() (glwidget.cpp:173)

Details

Committed
coconnorJan 11 2019, 6:06 PM
Parents
R158:bd12c4fa1e88: Don't trigger monitor refresh when updating an audio clip
Branches
Unknown
Tags
Unknown