elm_conform: to prevent crash, add null check before resizing conformant area 84/42884/1 submit/tizen/20150703.125223
authorGwanglim Lee <gl77.lee@samsung.com>
Fri, 3 Jul 2015 12:48:06 +0000 (21:48 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 3 Jul 2015 12:48:06 +0000 (21:48 +0900)
Change-Id: Ib8e491167fdabd441f4fdf42fad2098bfd932bc3

src/lib/elm_conform.c

index 2d6246a..92f33fe 100644 (file)
@@ -914,6 +914,11 @@ _on_conformant_changed(void *data,
    part_type = (ELM_CONFORMANT_INDICATOR_PART |
                 ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
 
+   ELM_CONFORMANT_DATA_GET(data, sd);
+
+   /* object is already freed */
+   if (!sd) return;
+
    _conformant_part_sizing_eval(data, part_type);
 }