mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +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
a0e9f6d36f
commit
7adb090d99
@ -1370,6 +1370,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