GNOME Bugzilla – Bug 777269
gxps-file: use GPtrArray for the docs in an archive
Last modified: 2017-01-16 18:19:54 UTC
The API exposes get_n and get_nth so using an array internally is simpler and more efficient.
Created attachment 343495 [details] [review] gxps-file: use GPtrArray for the docs in an archive
Review of attachment 343495 [details] [review]: Cool, thanks! ::: libgxps/gxps-file.c @@ +330,3 @@ xps->priv->initialized = TRUE; + xps->priv->docs = g_ptr_array_new_with_free_func ((GDestroyNotify)g_free); I don't think you need to cast here.
Comment on attachment 343495 [details] [review] gxps-file: use GPtrArray for the docs in an archive Amended as requested and pushed.
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.