app: fix incompatible pointer type warning in gimpviewrendererdrawable.c

... more GLib 2.58 fallout.
This commit is contained in:
Ell 2018-09-18 16:17:36 -04:00
parent a84b57e67e
commit a5c8dd5c73
1 changed files with 7 additions and 1 deletions

View File

@ -379,7 +379,13 @@ gimp_view_renderer_drawable_cancel_render (GimpViewRendererDrawable *renderdrawa
* after the drawable had died, and our completion callback is prepared to
* handle cancelation.
*/
g_clear_pointer (&renderdrawable->priv->render_async, gimp_cancelable_cancel);
if (renderdrawable->priv->render_async)
{
gimp_cancelable_cancel (
GIMP_CANCELABLE (renderdrawable->priv->render_async));
renderdrawable->priv->render_async = NULL;
}
g_clear_object (&renderdrawable->priv->render_widget);
}