edje_cc: fix crash on image data initialization 93/239293/1 submit/tizen/20200723.215228
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 23 Jul 2020 10:35:12 +0000 (19:35 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Thu, 23 Jul 2020 11:29:28 +0000 (20:29 +0900)
commit2cdd09df5bd60a36638891ed6df7d77024305a00
treee3de5049cbf54ee211768be98545cd73ba7d73c6
parent3383a6644a164509da35dabd9f8f542ad2ab6459
edje_cc: fix crash on image data initialization

Summary:
Since commit a8538bacce1457a91e28b39a6417eaadb4744b50 a crash occurs when
Images.Set.Image is unused.

To avoid a crash, this patch skips setting image data for unused image sets.

Test Plan:

$edje_cc basic.edc

basic.edc
```
collections {
   set {
      name: "bubble";
      image {
         image: "bubble.png" COMP;
      }
   }
}
```

Reviewers: raster

Subscribers: cedric, #reviewers, #committers, eagleeye

Tags: #efl

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

Change-Id: Ibcb14df831f0a6eb51d69267b379f6480256969f
src/bin/edje/edje_cc_out.c
src/lib/edje/edje_private.h