thorsson_cups 0.0.39 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/cups.c +1 -5
  2. 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, dest);
580
+ cupsFreeDests(num_dests, dests);
585
581
 
586
582
  return options_list;
587
583
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thorsson_cups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: