openbsd-ports/graphics/dia/patches/patch-plug-ins_pixbuf_pixbuf_c
ajacoutot 3fb16d5dd6 - some cleanings:
* precise license marker
 * indent
 * tweak DESCR
- use SUBST_VAR
- add gnomeprint support to the gnome FLAVOR
- use textproc/intltool MODULE
- fix a memleak that would lead to a crash when trying to export using
pixbux(png, jpg...); from GNOME svn
2008-05-16 11:55:29 +00:00

21 lines
925 B
Plaintext

$OpenBSD: patch-plug-ins_pixbuf_pixbuf_c,v 1.1 2008/05/16 11:55:29 ajacoutot Exp $
--- plug-ins/pixbuf/pixbuf.c.orig Fri May 16 13:43:44 2008
+++ plug-ins/pixbuf/pixbuf.c Fri May 16 13:44:35 2008
@@ -233,7 +233,7 @@ dia_plugin_init(PluginInfo *info)
}
/* there is no write only filter */
{
- DiaImportFilter* ifilter = g_new0 (DiaImportFilter, 1);
+ DiaImportFilter* ifilter;
gchar* name;
name = gdk_pixbuf_format_get_name (format);
@@ -252,6 +252,7 @@ dia_plugin_init(PluginInfo *info)
g_free (name);
continue;
}
+ ifilter = g_new0 (DiaImportFilter, 1);
/* the pixbuf desriptions are too generic for Dia's usage, make our own */
ifilter->description = g_strdup_printf ("Pixbuf[%s]", name);
ifilter->extensions = (const gchar**)gdk_pixbuf_format_get_extensions (format);