diff options
author | Tor Lillqvist <tml@novell.com> | 2008-08-02 11:29:31 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-08-02 11:29:31 +0000 |
commit | 4998d8c46936a12c9208273339a768277885f36f (patch) | |
tree | ce029ec6bd4696f52d243700872038bb1371b443 /gtk/gtkprintoperation-win32.c | |
parent | c364ffa34036610664c3ba6089009f9c86c1e8fb (diff) | |
download | gtk+-4998d8c46936a12c9208273339a768277885f36f.tar.gz |
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
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 12c1e5ebc8..148ef751eb 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-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); |