Skip to content

Commit 5646c2f

Browse files
committed
Fix framework lib calls atexit()
The MLT library provides `mlt_factory_close()` that an application can choose to use or not. It is bad practice for a lib to impose upon an app. Related to #1175
1 parent 2da3188 commit 5646c2f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/framework/mlt_factory.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file mlt_factory.c
33
* \brief the factory method interfaces
44
*
5-
* Copyright (C) 2003-2024 Meltytech, LLC
5+
* Copyright (C) 2003-2025 Meltytech, LLC
66
*
77
* This library is free software; you can redistribute it and/or
88
* modify it under the terms of the GNU Lesser General Public
@@ -211,9 +211,6 @@ mlt_repository mlt_factory_init(const char *directory)
211211

212212
// Create the repository of services
213213
repository = mlt_repository_init(mlt_directory);
214-
215-
// Force a clean up when app closes
216-
atexit(mlt_factory_close);
217214
}
218215

219216
if (global_properties) {

0 commit comments

Comments
 (0)