Browse Source

Added method to destroy global image settings

Patrick Widauer 8 years ago
parent
commit
3af7204e9f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/image_c_bindings.cc

+ 4 - 0
src/lib/image_c_bindings.cc

@@ -103,6 +103,10 @@ CAPI(wkhtmltoimage_global_settings *) wkhtmltoimage_create_global_settings() {
 	return reinterpret_cast<wkhtmltoimage_global_settings *>(new settings::ImageGlobal());
 }
 
+CAPI(void) wkhtmltoimage_destroy_global_settings(wkhtmltoimage_global_settings * obj) {
+	delete reinterpret_cast<settings::ImageGlobal *>(obj);
+}
+
 CAPI(int) wkhtmltoimage_set_global_setting(wkhtmltoimage_global_settings * settings, const char * name, const char * value) {
 	return reinterpret_cast<settings::ImageGlobal *>(settings)->set(name, QString::fromUtf8(value));
 }