Skip to:
If empty media is inserted the json_objects aren't used, and the framework can't free them. In turn they should be decremented in reference count before returning NULL
Changes merged
If empty media is inserted the json_objects aren't used, and the framework can't free them. In turn they should be decremented in reference count before returning NULL