MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuSVGImageUnbind

Function PiuSVGImageUnbind

modules/piu/Pebble/piuSVGImage.c:336–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void PiuSVGImageUnbind(void* it, PiuApplication* application, PiuView* view)
337{
338 PiuSVGImage* self = it;
339 PiuContentUnbind(it, application, view);
340 if ((*self)->id) {
341 if ((*self)->dci) {
342 gdraw_command_image_destroy((*self)->dci);
343 (*self)->dci = NULL;
344 }
345 if ((*self)->dcs) {
346 gdraw_command_sequence_destroy((*self)->dcs);
347 (*self)->dcs = NULL;
348 (*self)->dcf = NULL;
349 }
350 }
351 if ((*self)->dcl) {
352 gdraw_command_list_destroy((*self)->dcl);
353 (*self)->dcl = NULL;
354 }
355}
356
357void PiuSVGImage_create(xsMachine* the)
358{

Callers

nothing calls this directly

Calls 1

PiuContentUnbindFunction · 0.85

Tested by

no test coverage detected