summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_drawing.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-10-31 12:57:59 +0000
committerTim Redfern <tim@eclectronics.org>2013-10-31 12:57:59 +0000
commit834835c99dd9fd182ca3116b5bc3e7ae8b3815ad (patch)
treeadd4c59353b4d5cb914e44a92fcfb08f5981838c /rotord/src/nodes_drawing.h
parentb3abde4531510b7accbc58174ecd9ec27c52ee3a (diff)
thumbnail stills and svgs
Diffstat (limited to 'rotord/src/nodes_drawing.h')
-rw-r--r--rotord/src/nodes_drawing.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h
index b26841e..1bd6375 100644
--- a/rotord/src/nodes_drawing.h
+++ b/rotord/src/nodes_drawing.h
@@ -3,7 +3,6 @@
#include "rotor.h"
#include <cairo.h>
-#include <rsvg.h>
namespace Rotor {
class Draw_node: public Image_node {
@@ -217,6 +216,7 @@ namespace Rotor {
};
class Svg: public Draw_node {
public:
+ //rsvg should be cleanup?
Svg(){
title="SVG";
description="Draws svg files";
@@ -238,7 +238,10 @@ namespace Rotor {
}
else cerr<<"Rotor: SVG failed to load "<<attributes["filename"]->value<<endl;
};
- ~Svg(){};
+ ~Svg(){
+ rsvg_handle_close(rsvg,nullptr);
+ g_object_unref(rsvg);
+ };
Svg* clone(map<string,string> &_settings) { return new Svg(_settings);};
void vector_output(cairo_t * cr,const Frame_spec &frame){
//to make it resolution independent