[gvfs/gnome-3-10] Do not call NULL callbacks in eject_wrapper_callback()
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-3-10] Do not call NULL callbacks in eject_wrapper_callback()
- Date: Fri, 16 Jan 2015 10:53:59 +0000 (UTC)
commit b4f0ff87748b8e864d12c72dc9a9cc607506fa5d
Author: Siteshwar Vashisht <svashish redhat com>
Date: Wed Jan 14 14:39:32 2015 +0530
Do not call NULL callbacks in eject_wrapper_callback()
monitor/proxy/gproxymount.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/monitor/proxy/gproxymount.c b/monitor/proxy/gproxymount.c
index 64e128d..73af376 100644
--- a/monitor/proxy/gproxymount.c
+++ b/monitor/proxy/gproxymount.c
@@ -386,7 +386,8 @@ eject_wrapper_callback (GObject *source_object,
gpointer user_data)
{
EjectWrapperOp *data = user_data;
- data->callback (data->object, res, data->user_data);
+ if (data->callback)
+ data->callback (data->object, res, data->user_data);
g_object_unref (data->object);
g_free (data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]