projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cfa44d
)
GApplication: Don't decrease use_count below 0
author
Marek Kasik
<mkasik@redhat.com>
Thu, 3 Apr 2014 15:35:22 +0000
(17:35 +0200)
committer
Marek Kasik
<mkasik@redhat.com>
Fri, 4 Apr 2014 14:04:46 +0000
(16:04 +0200)
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
gio/gapplication.c
patch
|
blob
|
history
diff --git
a/gio/gapplication.c
b/gio/gapplication.c
index
472c3a5
..
aa963c4
100644
(file)
--- a/
gio/gapplication.c
+++ b/
gio/gapplication.c
@@
-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--;