evas vg: prevent dangling pointer. 15/209115/1
authorHermet Park <hermetpark@gmail.com>
Tue, 2 Jul 2019 08:58:19 +0000 (17:58 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 2 Jul 2019 08:58:19 +0000 (17:58 +0900)
@fix

Change-Id: I722d6827d5a0910437eaaa2de8692da994c52718

src/lib/evas/canvas/efl_canvas_vg_object.c

index 2bbbc0d..1d93201 100644 (file)
@@ -446,7 +446,11 @@ _evas_vg_render(Evas_Object_Protected_Data *obj, Efl_Canvas_Vg_Object_Data *pd,
                   free(cd->blend_pixels);
                   cd->blend_pixels = NULL;
                }
-             if (cd->blend_buffer) efl_unref(cd->blend_buffer);
+             if (cd->blend_buffer)
+               {
+                  efl_unref(cd->blend_buffer);
+                  cd->blend_buffer = NULL;
+               }
              EINA_LIST_FOREACH(cd->children, l, child)
                 _evas_vg_render(obj, pd, engine, output, context, child, clips, w, h, ector, do_async);
           }