Commit c59478af authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added errors_exit() and unset the Gimp reference. Errors may occur after

2007-06-13  Sven Neumann  <sven@gimp.org>

	* app/errors.[ch]: added errors_exit() and unset the Gimp
	reference. Errors may occur after the Gimp object has been finalized.

	* app/app.c (app_run): call errors_exit().

svn path=/trunk/; revision=22768
parent 64c342f4
2007-06-13 Sven Neumann <sven@gimp.org>
* app/errors.[ch]: added errors_exit() and unset the Gimp
reference. Errors may occur after the Gimp object has been finalized.
* app/app.c (app_run): call errors_exit().
2007-06-12 Raphaël Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-load.c (load_image): Instead of passing any
......@@ -248,6 +248,7 @@ app_run (const gchar *full_prog_name,
g_main_loop_unref (loop);
g_object_unref (gimp);
errors_exit ();
base_exit ();
}
......
......@@ -111,7 +111,6 @@ errors_init (Gimp *gimp,
#endif /* GIMP_UNSTABLE */
the_errors_gimp = gimp;
use_debug_handler = _use_debug_handler ? TRUE : FALSE;
stack_trace_mode = _stack_trace_mode;
full_prog_name = g_strdup (_full_prog_name);
......@@ -126,6 +125,12 @@ errors_init (Gimp *gimp,
gimp_error_log_func, gimp);
}
void
errors_exit (void)
{
the_errors_gimp = NULL;
}
void
gimp_fatal_error (const gchar *fmt, ...)
{
......
......@@ -28,6 +28,7 @@ void errors_init (Gimp *gimp,
const gchar *full_prog_name,
gboolean use_debug_handler,
GimpStackTraceMode stack_trace_mode);
void errors_exit (void);
void gimp_fatal_error (const gchar *format,
...) G_GNUC_PRINTF (1, 2) G_GNUC_NORETURN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment