efl_canvas_proxy: fix the parameter of EINA_COW_WRITE
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 12 Dec 2016 02:42:01 +0000 (11:42 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 12 Dec 2016 02:42:01 +0000 (11:42 +0900)
Summary:
EINA_COW_WRITE_BEGIN and EINA_COW_WRITE_END's parameters must be same.
But 'Read' paramter is different. So wrong variable's value is changed.
@fix

Reviewers: woohyun, Hermet, cedric, raster, jpeg

Reviewed By: jpeg

Differential Revision: https://phab.enlightenment.org/D4472

src/lib/evas/canvas/efl_canvas_proxy.c

index aa5cfe5..2e5af8d 100644 (file)
@@ -207,7 +207,7 @@ _evas_image_proxy_unset(Evas_Object *proxy, Evas_Object_Protected_Data *cur_prox
         EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
      }
 
-   EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, cur_source->proxy, Evas_Object_Proxy_Data, proxy_write)
+   EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, cur_proxy->proxy, Evas_Object_Proxy_Data, proxy_write)
      proxy_write->is_proxy = EINA_FALSE;
    EINA_COW_WRITE_END(evas_object_proxy_cow, cur_proxy->proxy, proxy_write);
 }