]> git.sesse.net Git - mlt/blobdiff - src/melt/melt.c
Workaround to prevent qmelt on OS X from crashing at exit.
[mlt] / src / melt / melt.c
index 029b3769b0e9cca3950512d8d984668e9729c8f0..9b26654c26d0694cd41a6d24441b9383ddf32e75 100644 (file)
@@ -988,8 +988,11 @@ query_all:
        mlt_profile_close( profile );
 
 exit_factory:
-               
+
+// Workaround qmelt on OS X from crashing at exit.
+#if !defined(__MACH__) || !defined(QT_GUI_LIB)
        mlt_factory_close( );
+#endif
 
        return 0;
 }