Commit a371efe3 authored by XueShuming's avatar XueShuming
Browse files

fix memory

parent e717366e
......@@ -170,6 +170,7 @@ hisvg_handle_class_init (HiSVGHandleClass * klass)
void hisvg_handle_destroy (HiSVGHandle * handle)
{
g_object_unref (handle);
xmlCleanupParser ();
}
/**
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment