app: move the instance debug facility to the new file app/gimp-debug.c

Build it unconditionally but enable it via GIMP_DEBUG=instances
This commit is contained in:
Michael Natterer
2010-06-24 19:11:56 +02:00
parent c448cc7d25
commit b2b1cb135b
6 changed files with 17 additions and 88 deletions

View File

@ -59,6 +59,7 @@
#include "batch.h"
#include "errors.h"
#include "units.h"
#include "gimp-debug.h"
#include "gimp-intl.h"
@ -255,9 +256,7 @@ app_run (const gchar *full_prog_name,
g_object_unref (gimp);
#ifdef DEBUG_INSTANCES
gimp_object_debug_instances ();
#endif
gimp_debug_instances ();
errors_exit ();
gegl_exit ();