thorsson_cups 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/cups.c +0 -9
- metadata +1 -1
data/ext/cups.c
CHANGED
@@ -435,13 +435,6 @@ static VALUE cups_get_jobs(VALUE self, VALUE printer)
|
|
435
435
|
|
436
436
|
// Free job array
|
437
437
|
cupsFreeJobs(num_jobs, jobs);
|
438
|
-
|
439
|
-
if(jobs != NULL)
|
440
|
-
free(jobs);
|
441
|
-
if(printer_arg != NULL)
|
442
|
-
free(printer_arg);
|
443
|
-
|
444
|
-
cupsFreeDests(num_jobs, jobs);
|
445
438
|
return job_list;
|
446
439
|
}
|
447
440
|
|
@@ -577,8 +570,6 @@ static VALUE cups_get_options(VALUE self, VALUE printer)
|
|
577
570
|
rb_hash_aset(options_list, rb_str_new2(dest->options[i].name), rb_str_new2(dest->options[i].value));
|
578
571
|
}
|
579
572
|
|
580
|
-
cupsFreeDests(num_dests, dests);
|
581
|
-
|
582
573
|
return options_list;
|
583
574
|
}
|
584
575
|
|