Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HybridOS
hiSVG
Commits
a371efe3
Commit
a371efe3
authored
May 12, 2021
by
XueShuming
Browse files
fix memory
parent
e717366e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hisvg-gobject.c
View file @
a371efe3
...
...
@@ -170,6 +170,7 @@ hisvg_handle_class_init (HiSVGHandleClass * klass)
void
hisvg_handle_destroy
(
HiSVGHandle
*
handle
)
{
g_object_unref
(
handle
);
xmlCleanupParser
();
}
/**
...
...
tests/svg2png.c
View file @
a371efe3
...
...
@@ -14,7 +14,7 @@ int main (int argc, char* argv[])
return
-
1
;
}
char
*
png_name
=
(
char
*
)
malloc
(
strlen
(
argv
[
1
]
+
5
)
)
;
char
*
png_name
=
(
char
*
)
malloc
(
strlen
(
argv
[
1
]
)
+
5
);
strcpy
(
png_name
,
argv
[
1
]);
strcat
(
png_name
,
".png"
);
fprintf
(
stderr
,
"in=%s|out=%s
\n
"
,
argv
[
1
],
png_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment