mark deprecated functions

This commit is contained in:
Peter Bieringer 2021-02-02 22:12:35 +01:00
parent ea963c73eb
commit 5e269ecaaa
1 changed files with 2 additions and 2 deletions

View File

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