Re: Two issues with librsvg

2017-10-23 Thread Tristan Van Berkom
With a very brief look at your valgrind output i can tell you that you need a suppressions file. You may be leaking, but you are also counting GType registration as "possibly lost", this is constant data for static types which will be allocated once and remain on the heap for program lifetime,

Two issues with librsvg

2017-10-23 Thread Oren Ben-Kiki
My main issue is that librsvg seems to not find sub elements by id. Specifically, rsvg_handle_has_sub returns false, and therefore querying for the element's size and position fails. I'm probably doing something wrong here... or is this a bug? I really want the ability to access sub-elements size

Re: Two issues with librsvg

2017-10-23 Thread Oren Ben-Kiki
Oops, the sample program I gave was missing the call to rsvg_handle_close. However, adding it doesn't change anything. The corrected program is: --- cheese.cpp --- #include #include using namespace std; static const char s_svg[] = R"EOF( )EOF"; int main() { cerr << "RSVG VERSION: " <<

Two issues with librsvg

2017-10-21 Thread Oren Ben-Kiki
My main issue is that librsvg seems to not find sub elements by id. Specifically, rsvg_handle_has_sub returns false, and therefore querying for the element's size and position fails. I'm probably doing something wrong here... or is this a bug? I really want the ability to access sub-elements size