thorsson_cups 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/cups.c +1 -5
- metadata +1 -1
data/ext/cups.c
CHANGED
|
@@ -210,8 +210,6 @@ static VALUE cups_get_default(VALUE self)
|
|
|
210
210
|
if (default_printer != NULL) {
|
|
211
211
|
VALUE def_p = rb_str_new2(default_printer);
|
|
212
212
|
|
|
213
|
-
cupsFreeDests(default_printer);
|
|
214
|
-
|
|
215
213
|
return def_p;
|
|
216
214
|
}
|
|
217
215
|
// should return nil if no default printer is found!
|
|
@@ -236,8 +234,6 @@ static VALUE cups_cancel(VALUE self)
|
|
|
236
234
|
char *target = RSTRING_PTR(printer); // Target printer string
|
|
237
235
|
int cancellation;
|
|
238
236
|
cancellation = cupsCancelJob(target, job);
|
|
239
|
-
|
|
240
|
-
cupsFreeDests(cancellation);
|
|
241
237
|
return Qtrue;
|
|
242
238
|
}
|
|
243
239
|
}
|
|
@@ -581,7 +577,7 @@ static VALUE cups_get_options(VALUE self, VALUE printer)
|
|
|
581
577
|
rb_hash_aset(options_list, rb_str_new2(dest->options[i].name), rb_str_new2(dest->options[i].value));
|
|
582
578
|
}
|
|
583
579
|
|
|
584
|
-
cupsFreeDests(num_dests, dests
|
|
580
|
+
cupsFreeDests(num_dests, dests);
|
|
585
581
|
|
|
586
582
|
return options_list;
|
|
587
583
|
}
|