mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
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. https://bugzilla.gnome.org/show_bug.cgi?id=727551
This commit is contained in:
parent
c7a661988e
commit
7e10a9141e
@ -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);
|
||||
|
||||
application->priv->use_count--;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user