Commit e16f8285 authored by Matthias Clasen's avatar Matthias Clasen

Add return-if-fail checks to g_application_hold/release

This is our common practice for public API.
parent 1a20d56a
......@@ -1347,6 +1347,8 @@ g_application_register (GApplication *application,
g_application_hold (GApplication *application)
g_return_if_fail (G_IS_APPLICATION (application));
if (application->priv->inactivity_timeout_id)
g_source_remove (application->priv->inactivity_timeout_id);
......@@ -1381,6 +1383,8 @@ inactivity_timeout_expired (gpointer data)
g_application_release (GApplication *application)
g_return_if_fail (G_IS_APPLICATION (application));
if (application->priv->use_count == 0 && application->priv->inactivity_timeout)
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