MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsFreeDests

Function cupsFreeDests

cups/dest.c:1022–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020 */
1021
1022void
1023cupsFreeDests(int num_dests, /* I - Number of destinations */
1024 cups_dest_t *dests) /* I - Destinations */
1025{
1026 int i; /* Looping var */
1027 cups_dest_t *dest; /* Current destination */
1028
1029
1030 if (num_dests == 0 || dests == NULL)
1031 return;
1032
1033 for (i = num_dests, dest = dests; i > 0; i --, dest ++)
1034 {
1035 _cupsStrFree(dest->name);
1036 _cupsStrFree(dest->instance);
1037
1038 cupsFreeOptions(dest->num_options, dest->options);
1039 }
1040
1041 free(dests);
1042}
1043
1044
1045/*

Callers 11

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
check_destFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
cupsSetDests2Function · 0.85
cups_enum_destsFunction · 0.85
cupsCreateJobFunction · 0.85
enum_dests_cbFunction · 0.85

Calls 2

_cupsStrFreeFunction · 0.85
cupsFreeOptionsFunction · 0.85

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
enum_dests_cbFunction · 0.68