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:
4c63303
)
Remove an unneeded NULL check
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 13:50:55 +0000
(09:50 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 13:50:55 +0000
(09:50 -0400)
data->proxy cannot be NULL here, or we'd have crashed 10 lines up.
gio/gdbusproxy.c
patch
|
blob
|
history
diff --git
a/gio/gdbusproxy.c
b/gio/gdbusproxy.c
index
6fd181b
..
e5e5907
100644
(file)
--- a/
gio/gdbusproxy.c
+++ b/
gio/gdbusproxy.c
@@
-1658,8
+1658,8
@@
get_connection_cb (GObject *source_object,
if (data->cancellable != NULL)
g_object_unref (data->cancellable);
- if (data->proxy != NULL)
-
g_object_unref (data->proxy);
+
+ g_object_unref (data->proxy);
g_free (data);
}