X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmain.C;h=e41f0cbe9c9369c28491e70839d9d0264c6c3f0b;hb=55ccff122957ddfaa871cf8f251cfe866732c870;hp=0241780313371c57dc97c304c3f4ebf1646dc07f;hpb=e9a3c57c8d3bb4d79e76a4c3942f86a66d3c267e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/main.C b/cinelerra-5.1/cinelerra/main.C index 02417803..e41f0cbe 100644 --- a/cinelerra-5.1/cinelerra/main.C +++ b/cinelerra-5.1/cinelerra/main.C @@ -35,13 +35,14 @@ #include "pluginserver.h" #include "preferences.h" #include "renderfarmclient.h" +#include "units.h" #include "versioninfo.h" #include #include #include -#if 0 +#ifdef LEAKER #define STRC(v) printf("==new %p from %p sz %jd\n", v, __builtin_return_address(0), n) #define STRD(v) printf("==del %p from %p\n", v, __builtin_return_address(0)) void *operator new(size_t n) { void *vp = malloc(n); STRC(vp); bzero(vp,n); return vp; } @@ -117,6 +118,7 @@ int main(int argc, char *argv[]) batch_path[0] = 0; deamon_path[0] = 0; EDL::id_lock = new Mutex("EDL::id_lock"); + Units::init(); File::init_cin_path(); const char *locale_path = File::get_locale_path(); @@ -406,6 +408,7 @@ DISABLE_BUFFER filenames.remove_all_objects(); delete EDL::id_lock; EDL::id_lock = 0; + Units::finit(); return 0; }