devhelp/devhelp-0.23-deprecation-workaround.patch

16 lines
590 B
Diff

diff -up devhelp-0.23/src/dh-assistant-view.c.deprecation-workaround devhelp-0.23/src/dh-assistant-view.c
--- devhelp-0.23/src/dh-assistant-view.c.deprecation-workaround 2008-11-28 10:56:04.000000000 -0500
+++ devhelp-0.23/src/dh-assistant-view.c 2009-07-15 09:47:19.000000000 -0400
@@ -340,7 +340,11 @@ assistant_view_set_link (DhAssistantView
webkit_web_view_open (WEBKIT_WEB_VIEW (view), "about:blank");
}
+#if GLIB_CHECK_VERSION(2,21,3)
+ g_mapped_file_unref (file);
+#else
g_mapped_file_free (file);
+#endif
g_free (filename);
}