Eliminate warnings

This commit is contained in:
kamel5 2021-03-11 13:21:45 +01:00
parent 3334263a96
commit 85df1e7f98
1 changed files with 2 additions and 2 deletions

View File

@ -178,14 +178,14 @@ cImageImporterSVG::cImageImporterSVG() {
cImageImporterSVG::~cImageImporterSVG() {
if (handle) {
rsvg_handle_close(handle, NULL); // TODO: deprecated since version 2.46
rsvg_handle_read_stream_sync(handle, NULL, NULL, NULL);
g_object_unref(handle);
}
}
bool cImageImporterSVG::LoadImage(const char *path) {
if (handle) {
rsvg_handle_close(handle, NULL); // TODO: deprecated since version 2.46
rsvg_handle_read_stream_sync(handle, NULL, NULL, NULL);
g_object_unref(handle);
}