Memory leak using image.set_src() and image_dsc_t

I have a question for Vobot developers. I’m trying to develop a simple app to download a JPG image dynamically and display it in certain time interval. However, using the function set_src() of the image object with the image_dsc_t structure, memory leak will be observed. Using set_src() with an image file is completely fine.

Below is a sample code. buffer is a bytes array containing the downloaded JPG image.

Is there a better way to workaround this? Or can it be fixed in future firmware?

image_dsc = lv.image_dsc_t(
    {
        "header": {"w": 320, "h": 240, "cf": lv.COLOR_FORMAT.RAW},
        "data_size": len(buffer),
        "data": buffer,
    }
)
image = lv.image(scr)
image.align(lv.ALIGN.CENTER, 0, 0)
image.set_src(image_dsc)