Commit 4998d8c4 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Bug 538686 - gtkprintoperation-win32.c: devmode_from_settings

2008-08-02  Tor Lillqvist  <tml@novell.com>

	Bug 538686 - gtkprintoperation-win32.c: devmode_from_settings

	* gtk/gtkprintoperation-win32.c (devmode_from_settings): Plug
	potential leak. Thanks to Morten Welinder.


svn path=/trunk/; revision=20944
parent c364ffa3
2008-08-02 Tor Lillqvist <tml@novell.com>
Bug 538686 - gtkprintoperation-win32.c: devmode_from_settings
* gtk/gtkprintoperation-win32.c (devmode_from_settings): Plug
potential leak. Thanks to Morten Welinder.
2008-08-02 Tor Lillqvist <tml@novell.com>
* gtk/gtkprint-win32.c
......
......@@ -940,8 +940,8 @@ devmode_from_settings (GtkPrintSettings *settings,
{
devmode->dmDriverExtra = extras_len;
memcpy (((char *)devmode) + sizeof (DEVMODEW), extras, extras_len);
g_free (extras);
}
g_free (extras);
if (gtk_print_settings_has_key (settings, GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION))
devmode->dmDriverVersion = gtk_print_settings_get_int (settings, GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION);
......
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