summaryrefslogtreecommitdiff
path: root/src/lib/elm_diskselector.c
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2015-01-30 10:47:09 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:13:27 +0100
commitf6a2b715abf5bf00d92368c267e6377e5b477399 (patch)
treeb74f0c963c7dcb9502e080ad0d2a39dcb71401b7 /src/lib/elm_diskselector.c
parentd3c0a3b79d060ceecf2ff0a51dec2b489a918764 (diff)
elm_diskselector: check if sd variable is null.
Summary: This causes a segmentation fault when closing the DiskSelector window on Windows. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elm_diskselector.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 828b28a66..d8598ade5 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -146,6 +146,9 @@ _string_check_idle_enterer_cb(void *data)
146 Evas_Coord ox, ow; 146 Evas_Coord ox, ow;
147 char buf[1024]; 147 char buf[1024];
148 148
149 if (!sd)
150 return ECORE_CALLBACK_CANCEL;
151
149 evas_object_geometry_get(obj, &ox, NULL, &ow, NULL); 152 evas_object_geometry_get(obj, &ox, NULL, &ow, NULL);
150 153
151 if (ow <= 0) 154 if (ow <= 0)