Exemple #1
0
void video_canvas_destroy(video_canvas_t *canvas)
{
#ifdef HAVE_FULLSCREEN
    if (canvas != NULL) {
        fullscreen_shutdown_alloc_hooks(canvas);
        lib_free(canvas->fullscreenconfig);
    }
#endif
}
Exemple #2
0
void video_canvas_destroy(video_canvas_t *canvas)
{
    DBG(("video_canvas_destroy %p", canvas));

    if (canvas) {
#ifdef HAVE_FULLSCREEN
        fullscreen_shutdown_alloc_hooks(canvas);
        lib_free(canvas->fullscreenconfig);
#endif
        if (canvas->gdk_image != NULL) {
            g_object_unref(canvas->gdk_image);
        }

#ifdef HAVE_HWSCALE
        lib_free(canvas->hwscale_image);
#endif
    }
}