diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c index 61d42f4b1380f310843795cd4926a0dde28344b2..dd9ec0e24ad0f50ffd6f0b5f81494a0489e72660 100644 --- a/plugins/snap/gs-plugin-snap.c +++ b/plugins/snap/gs-plugin-snap.c @@ -2366,7 +2366,8 @@ gs_plugin_snap_uninstall_apps_async (GsPlugin *plugin, app_data, cancellable, uninstall_app_cb, - g_steal_pointer (&app_data)); + app_data /* steal ownership */); + app_data = NULL; } finish_uninstall_apps_op (task, NULL);