circle surface: fix crash when private surface is used 70/189770/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 20 Sep 2018 09:42:53 +0000 (18:42 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 20 Sep 2018 09:44:00 +0000 (18:44 +0900)
Change-Id: I41e3badbab2b80025b14b932feb39a4f200daf0b

src/wearable/circle/efl_extension_circle_object.c

index 44e52060d4f4e95121b90000894939926dd2bd60..a630d336a200d9d11ee77392be27e76eebba312c 100644 (file)
@@ -166,7 +166,7 @@ _eext_circle_object_add(Evas_Object *parent, Evas_Object *widget_obj, Eext_Circl
    obj = elm_table_add(parent);
 
    if (!surface)
-     surface = _eext_circle_surface_init(circle_obj->main_obj, NULL, EEXT_CIRCLE_SURFACE_TYPE_PRIVATE);
+     surface = _eext_circle_surface_init(obj, NULL, EEXT_CIRCLE_SURFACE_TYPE_PRIVATE);
 
    circle_obj = (Eext_Circle_Object *)calloc(1, sizeof(Eext_Circle_Object));
    // Obj is expected to be elm_image object.