/* async-launcher.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from async-launcher.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include "common.h"
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <gobject/gvaluecollector.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define _boxes_async_launcher_unref0(var) ((var == NULL) ? NULL : (var = (boxes_async_launcher_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL)))
typedef struct _BoxesAsyncLauncherLaunchData BoxesAsyncLauncherLaunchData;
typedef struct _BoxesParamSpecAsyncLauncher BoxesParamSpecAsyncLauncher;

struct _BoxesAsyncLauncherPrivate {
	GList* all_threads;
};

struct _Block1Data {
	int _ref_count_;
	BoxesAsyncLauncher* self;
	GError* e;
	GSourceFunc resume;
	gpointer resume_target;
	GDestroyNotify resume_target_destroy_notify;
	BoxesAsyncLauncherRunInThreadFunc func;
	gpointer func_target;
	GDestroyNotify func_target_destroy_notify;
	gpointer _async_data_;
};

struct _BoxesAsyncLauncherLaunchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesAsyncLauncher* self;
	BoxesAsyncLauncherRunInThreadFunc func;
	gpointer func_target;
	GDestroyNotify func_target_destroy_notify;
	Block1Data* _data1_;
	GThread* thread;
	GThread* _tmp0_;
	GThread* _tmp1_;
	GThread* _tmp2_;
	GThread* _tmp3_;
	GThread* _tmp4_;
	GError* _tmp5_;
	GError* _tmp6_;
	GError* _tmp7_;
	GError* _inner_error0_;
};

struct _BoxesParamSpecAsyncLauncher {
	GParamSpec parent_instance;
};

static gint BoxesAsyncLauncher_private_offset;
static gpointer boxes_async_launcher_parent_class = NULL;
static BoxesAsyncLauncher* boxes_async_launcher_launcher;
static BoxesAsyncLauncher* boxes_async_launcher_launcher = NULL;

static void _g_thread_unref0_ (gpointer var);
static inline void _g_list_free__g_thread_unref0_ (GList* self);
static BoxesAsyncLauncher* boxes_async_launcher_new (void);
static BoxesAsyncLauncher* boxes_async_launcher_construct (GType object_type);
static void boxes_async_launcher_launch_data_free (gpointer _data);
static gboolean boxes_async_launcher_launch_co (BoxesAsyncLauncherLaunchData* _data_);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean _boxes_async_launcher_launch_co_gsource_func (gpointer self);
static void* __lambda4_ (Block1Data* _data1_);
static gpointer ___lambda4__gthread_func (gpointer self);
static void boxes_async_launcher_finalize (BoxesAsyncLauncher * obj);
static GType boxes_async_launcher_get_type_once (void);

static inline gpointer
boxes_async_launcher_get_instance_private (BoxesAsyncLauncher* self)
{
	return G_STRUCT_MEMBER_P (self, BoxesAsyncLauncher_private_offset);
}

static void
_g_thread_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (g_thread_unref (var), NULL));
}

static inline void
_g_list_free__g_thread_unref0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_thread_unref0_);
}

static gpointer
_boxes_async_launcher_ref0 (gpointer self)
{
	return self ? boxes_async_launcher_ref (self) : NULL;
}

BoxesAsyncLauncher*
boxes_async_launcher_get_default (void)
{
	BoxesAsyncLauncher* _tmp0_;
	BoxesAsyncLauncher* _tmp2_;
	BoxesAsyncLauncher* _tmp3_;
	BoxesAsyncLauncher* result;
	_tmp0_ = boxes_async_launcher_launcher;
	if (_tmp0_ == NULL) {
		BoxesAsyncLauncher* _tmp1_;
		_tmp1_ = boxes_async_launcher_new ();
		_boxes_async_launcher_unref0 (boxes_async_launcher_launcher);
		boxes_async_launcher_launcher = _tmp1_;
	}
	_tmp2_ = boxes_async_launcher_launcher;
	_tmp3_ = _boxes_async_launcher_ref0 (_tmp2_);
	result = _tmp3_;
	return result;
}

static BoxesAsyncLauncher*
boxes_async_launcher_construct (GType object_type)
{
	BoxesAsyncLauncher* self = NULL;
	self = (BoxesAsyncLauncher*) g_type_create_instance (object_type);
	(self->priv->all_threads == NULL) ? NULL : (self->priv->all_threads = (_g_list_free__g_thread_unref0_ (self->priv->all_threads), NULL));
	self->priv->all_threads = NULL;
	return self;
}

static BoxesAsyncLauncher*
boxes_async_launcher_new (void)
{
	return boxes_async_launcher_construct (BOXES_TYPE_ASYNC_LAUNCHER);
}

static void
boxes_async_launcher_launch_data_free (gpointer _data)
{
	BoxesAsyncLauncherLaunchData* _data_;
	_data_ = _data;
	_boxes_async_launcher_unref0 (_data_->self);
	g_slice_free (BoxesAsyncLauncherLaunchData, _data_);
}

void
boxes_async_launcher_launch (BoxesAsyncLauncher* self,
                             BoxesAsyncLauncherRunInThreadFunc func,
                             gpointer func_target,
                             GDestroyNotify func_target_destroy_notify,
                             GAsyncReadyCallback _callback_,
                             gpointer _user_data_)
{
	BoxesAsyncLauncherLaunchData* _data_;
	BoxesAsyncLauncher* _tmp0_;
	g_return_if_fail (self != NULL);
	_data_ = g_slice_new0 (BoxesAsyncLauncherLaunchData);
	_data_->_async_result = g_task_new (NULL, NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, boxes_async_launcher_launch_data_free);
	_tmp0_ = _boxes_async_launcher_ref0 (self);
	_data_->self = _tmp0_;
	(_data_->func_target_destroy_notify == NULL) ? NULL : (_data_->func_target_destroy_notify (_data_->func_target), NULL);
	_data_->func = NULL;
	_data_->func_target = NULL;
	_data_->func_target_destroy_notify = NULL;
	_data_->func = func;
	_data_->func_target = func_target;
	_data_->func_target_destroy_notify = func_target_destroy_notify;
	boxes_async_launcher_launch_co (_data_);
}

void
boxes_async_launcher_launch_finish (BoxesAsyncLauncher* self,
                                    GAsyncResult* _res_,
                                    GError** error)
{
	BoxesAsyncLauncherLaunchData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
	if (NULL == _data_) {
		return;
	}
}

static Block1Data*
block1_data_ref (Block1Data* _data1_)
{
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}

static void
block1_data_unref (void * _userdata_)
{
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		BoxesAsyncLauncher* self;
		self = _data1_->self;
		(_data1_->resume_target_destroy_notify == NULL) ? NULL : (_data1_->resume_target_destroy_notify (_data1_->resume_target), NULL);
		_data1_->resume = NULL;
		_data1_->resume_target = NULL;
		_data1_->resume_target_destroy_notify = NULL;
		_g_error_free0 (_data1_->e);
		(_data1_->func_target_destroy_notify == NULL) ? NULL : (_data1_->func_target_destroy_notify (_data1_->func_target), NULL);
		_data1_->func = NULL;
		_data1_->func_target = NULL;
		_data1_->func_target_destroy_notify = NULL;
		_boxes_async_launcher_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}

static gboolean
_boxes_async_launcher_launch_co_gsource_func (gpointer self)
{
	gboolean result;
	result = boxes_async_launcher_launch_co (self);
	return result;
}

static gpointer
_g_error_copy0 (gpointer self)
{
	return self ? g_error_copy (self) : NULL;
}

static void*
__lambda4_ (Block1Data* _data1_)
{
	BoxesAsyncLauncher* self;
	GSourceFunc _tmp2_;
	gpointer _tmp2__target;
	GDestroyNotify _tmp2__target_destroy_notify;
	GError* _inner_error0_ = NULL;
	void* result;
	self = _data1_->self;
	{
		_data1_->func (_data1_->func_target, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* err = NULL;
		GError* _tmp0_;
		GError* _tmp1_;
		err = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp0_ = err;
		_tmp1_ = _g_error_copy0 (_tmp0_);
		_g_error_free0 (_data1_->e);
		_data1_->e = _tmp1_;
		_g_error_free0 (err);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return NULL;
	}
	_tmp2_ = _data1_->resume;
	_tmp2__target = _data1_->resume_target;
	_tmp2__target_destroy_notify = _data1_->resume_target_destroy_notify;
	_data1_->resume = NULL;
	_data1_->resume_target = NULL;
	_data1_->resume_target_destroy_notify = NULL;
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tmp2_, _tmp2__target, _tmp2__target_destroy_notify);
	result = NULL;
	return result;
}

static gpointer
___lambda4__gthread_func (gpointer self)
{
	gpointer result;
	result = __lambda4_ (self);
	block1_data_unref (self);
	return result;
}

static gpointer
_g_thread_ref0 (gpointer self)
{
	return self ? g_thread_ref (self) : NULL;
}

static GList*
vala_g_list_remove_full (GList* self,
                         gconstpointer data,
                         GFreeFunc func)
{
	GList* l = NULL;
	GList* result;
	l = self;
	while (TRUE) {
		GList* _tmp0_;
		GList* _tmp1_;
		gconstpointer _tmp2_;
		_tmp0_ = l;
		if (!(_tmp0_ != NULL)) {
			break;
		}
		_tmp1_ = l;
		_tmp2_ = ((GList*) _tmp1_)->data;
		if (_tmp2_ != data) {
			GList* _tmp3_;
			GList* _tmp4_;
			_tmp3_ = l;
			_tmp4_ = ((GList*) _tmp3_)->next;
			l = _tmp4_;
		} else {
			GList* _tmp5_;
			gconstpointer _tmp6_;
			GList* _tmp7_;
			_tmp5_ = l;
			_tmp6_ = ((GList*) _tmp5_)->data;
			func (_tmp6_);
			_tmp7_ = l;
			self = g_list_delete_link (self, (GList*) _tmp7_);
			break;
		}
	}
	result = self;
	return result;
}

static gboolean
boxes_async_launcher_launch_co (BoxesAsyncLauncherLaunchData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data1_ = g_slice_new0 (Block1Data);
	_data_->_data1_->_ref_count_ = 1;
	_data_->_data1_->self = boxes_async_launcher_ref (_data_->self);
	(_data_->_data1_->func_target_destroy_notify == NULL) ? NULL : (_data_->_data1_->func_target_destroy_notify (_data_->_data1_->func_target), NULL);
	_data_->_data1_->func = NULL;
	_data_->_data1_->func_target = NULL;
	_data_->_data1_->func_target_destroy_notify = NULL;
	_data_->_data1_->func = _data_->func;
	_data_->_data1_->func_target = _data_->func_target;
	_data_->_data1_->func_target_destroy_notify = _data_->func_target_destroy_notify;
	_data_->_data1_->_async_data_ = _data_;
	_data_->_data1_->e = NULL;
	_data_->_data1_->resume = _boxes_async_launcher_launch_co_gsource_func;
	_data_->_data1_->resume_target = _data_;
	_data_->_data1_->resume_target_destroy_notify = NULL;
	_data_->_tmp0_ = g_thread_new (NULL, ___lambda4__gthread_func, block1_data_ref (_data_->_data1_));
	_data_->thread = _data_->_tmp0_;
	_data_->_tmp1_ = _data_->thread;
	_data_->_tmp2_ = _g_thread_ref0 (_data_->_tmp1_);
	_data_->self->priv->all_threads = g_list_append (_data_->self->priv->all_threads, _data_->_tmp2_);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp3_ = _data_->thread;
	_data_->thread = NULL;
	g_thread_join (_data_->_tmp3_);
	_data_->_tmp4_ = _data_->thread;
	_data_->self->priv->all_threads = vala_g_list_remove_full (_data_->self->priv->all_threads, _data_->_tmp4_, _g_thread_unref0_);
	_data_->_tmp5_ = _data_->_data1_->e;
	if (_data_->_tmp5_ != NULL) {
		_data_->_tmp6_ = _data_->_data1_->e;
		_data_->_tmp7_ = _g_error_copy0 (_data_->_tmp6_);
		_data_->_inner_error0_ = _data_->_tmp7_;
		g_task_return_error (_data_->_async_result, _data_->_inner_error0_);
		_g_thread_unref0 (_data_->thread);
		block1_data_unref (_data_->_data1_);
		_data_->_data1_ = NULL;
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_g_thread_unref0 (_data_->thread);
	block1_data_unref (_data_->_data1_);
	_data_->_data1_ = NULL;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

void
boxes_async_launcher_await_all (BoxesAsyncLauncher* self)
{
	GList* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->all_threads;
	{
		GList* thread_collection = NULL;
		GList* thread_it = NULL;
		thread_collection = _tmp0_;
		for (thread_it = thread_collection; thread_it != NULL; thread_it = thread_it->next) {
			GThread* _tmp1_;
			GThread* thread = NULL;
			_tmp1_ = _g_thread_ref0 ((GThread*) thread_it->data);
			thread = _tmp1_;
			{
				GThread* _tmp2_;
				_tmp2_ = thread;
				thread = NULL;
				g_thread_join (_tmp2_);
				_g_thread_unref0 (thread);
			}
		}
	}
}

static void
boxes_value_async_launcher_init (GValue* value)
{
	value->data[0].v_pointer = NULL;
}

static void
boxes_value_async_launcher_free_value (GValue* value)
{
	if (value->data[0].v_pointer) {
		boxes_async_launcher_unref (value->data[0].v_pointer);
	}
}

static void
boxes_value_async_launcher_copy_value (const GValue* src_value,
                                       GValue* dest_value)
{
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = boxes_async_launcher_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}

static gpointer
boxes_value_async_launcher_peek_pointer (const GValue* value)
{
	return value->data[0].v_pointer;
}

static gchar*
boxes_value_async_launcher_collect_value (GValue* value,
                                          guint n_collect_values,
                                          GTypeCValue* collect_values,
                                          guint collect_flags)
{
	if (collect_values[0].v_pointer) {
		BoxesAsyncLauncher * object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = boxes_async_launcher_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}

static gchar*
boxes_value_async_launcher_lcopy_value (const GValue* value,
                                        guint n_collect_values,
                                        GTypeCValue* collect_values,
                                        guint collect_flags)
{
	BoxesAsyncLauncher ** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = boxes_async_launcher_ref (value->data[0].v_pointer);
	}
	return NULL;
}

GParamSpec*
boxes_param_spec_async_launcher (const gchar* name,
                                 const gchar* nick,
                                 const gchar* blurb,
                                 GType object_type,
                                 GParamFlags flags)
{
	BoxesParamSpecAsyncLauncher* spec;
	g_return_val_if_fail (g_type_is_a (object_type, BOXES_TYPE_ASYNC_LAUNCHER), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}

gpointer
boxes_value_get_async_launcher (const GValue* value)
{
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOXES_TYPE_ASYNC_LAUNCHER), NULL);
	return value->data[0].v_pointer;
}

void
boxes_value_set_async_launcher (GValue* value,
                                gpointer v_object)
{
	BoxesAsyncLauncher * old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOXES_TYPE_ASYNC_LAUNCHER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BOXES_TYPE_ASYNC_LAUNCHER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		boxes_async_launcher_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		boxes_async_launcher_unref (old);
	}
}

void
boxes_value_take_async_launcher (GValue* value,
                                 gpointer v_object)
{
	BoxesAsyncLauncher * old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOXES_TYPE_ASYNC_LAUNCHER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BOXES_TYPE_ASYNC_LAUNCHER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		boxes_async_launcher_unref (old);
	}
}

static void
boxes_async_launcher_class_init (BoxesAsyncLauncherClass * klass,
                                 gpointer klass_data)
{
	boxes_async_launcher_parent_class = g_type_class_peek_parent (klass);
	((BoxesAsyncLauncherClass *) klass)->finalize = boxes_async_launcher_finalize;
	g_type_class_adjust_private_offset (klass, &BoxesAsyncLauncher_private_offset);
}

static void
boxes_async_launcher_instance_init (BoxesAsyncLauncher * self,
                                    gpointer klass)
{
	self->priv = boxes_async_launcher_get_instance_private (self);
	self->ref_count = 1;
}

static void
boxes_async_launcher_finalize (BoxesAsyncLauncher * obj)
{
	BoxesAsyncLauncher * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_ASYNC_LAUNCHER, BoxesAsyncLauncher);
	g_signal_handlers_destroy (self);
	(self->priv->all_threads == NULL) ? NULL : (self->priv->all_threads = (_g_list_free__g_thread_unref0_ (self->priv->all_threads), NULL));
}

static GType
boxes_async_launcher_get_type_once (void)
{
	static const GTypeValueTable g_define_type_value_table = { boxes_value_async_launcher_init, boxes_value_async_launcher_free_value, boxes_value_async_launcher_copy_value, boxes_value_async_launcher_peek_pointer, "p", boxes_value_async_launcher_collect_value, "p", boxes_value_async_launcher_lcopy_value };
	static const GTypeInfo g_define_type_info = { sizeof (BoxesAsyncLauncherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_async_launcher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesAsyncLauncher), 0, (GInstanceInitFunc) boxes_async_launcher_instance_init, &g_define_type_value_table };
	static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
	GType boxes_async_launcher_type_id;
	boxes_async_launcher_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BoxesAsyncLauncher", &g_define_type_info, &g_define_type_fundamental_info, 0);
	BoxesAsyncLauncher_private_offset = g_type_add_instance_private (boxes_async_launcher_type_id, sizeof (BoxesAsyncLauncherPrivate));
	return boxes_async_launcher_type_id;
}

GType
boxes_async_launcher_get_type (void)
{
	static volatile gsize boxes_async_launcher_type_id__once = 0;
	if (g_once_init_enter (&boxes_async_launcher_type_id__once)) {
		GType boxes_async_launcher_type_id;
		boxes_async_launcher_type_id = boxes_async_launcher_get_type_once ();
		g_once_init_leave (&boxes_async_launcher_type_id__once, boxes_async_launcher_type_id);
	}
	return boxes_async_launcher_type_id__once;
}

gpointer
boxes_async_launcher_ref (gpointer instance)
{
	BoxesAsyncLauncher * self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}

void
boxes_async_launcher_unref (gpointer instance)
{
	BoxesAsyncLauncher * self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		BOXES_ASYNC_LAUNCHER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}

