Commit b81c12fc authored by Marek Kašík's avatar Marek Kašík

GApplication: Don't decrease use_count below 0

Place an assert for use_count to be at least 1
in g_application_release() so we don't decrease
it below 0.
parent 3cfa44da
......@@ -1870,6 +1870,7 @@ void
g_application_release (GApplication *application)
g_return_if_fail (G_IS_APPLICATION (application));
g_return_if_fail (application->priv->use_count > 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment