示例#1
0
/*
 * meh_screen_launch_destroy_data destroys the additional data
 * of the launch screen.
 */
void meh_screen_launch_destroy_data(Screen* screen) {
	LaunchData* data = meh_screen_launch_get_data(screen);
	meh_widget_rect_destroy(data->fade_widget);
	if (data->zoom_logo) {
		/* we delete the image widget we own, but not the one from the exec list */
		meh_widget_image_destroy(data->image_widget);
	}
	screen->data = NULL;
}
示例#2
0
void meh_screen_starting_destroy_data(Screen* screen) {
	g_assert(screen != NULL);

	StartingData* data = meh_screen_starting_get_data(screen);
	if (data != NULL && data->splash_texture != NULL) {
		meh_widget_image_destroy(data->splash);
		g_free(data);
	}
	screen->data = NULL;
}
示例#3
0
/*
 * meh_widget_video_destroy frees the resource of the given widget.
 */
void meh_widget_video_destroy(WidgetVideo* w_video) {
	if (w_video == NULL) {
		return;
	}

	destroy_internal_video(w_video);

	w_video->w_image->texture = NULL;
	meh_widget_image_destroy(w_video->w_image);
	g_free(w_video);
}