gtk+ r20944 - in trunk: . gtk
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20944 - in trunk: . gtk
- Date: Sat, 2 Aug 2008 11:29:31 +0000 (UTC)
Author: tml
Date: Sat Aug 2 11:29:31 2008
New Revision: 20944
URL: http://svn.gnome.org/viewvc/gtk+?rev=20944&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gtk/gtkprintoperation-win32.c
Modified: trunk/gtk/gtkprintoperation-win32.c
==============================================================================
--- trunk/gtk/gtkprintoperation-win32.c (original)
+++ trunk/gtk/gtkprintoperation-win32.c Sat Aug 2 11:29:31 2008
@@ -940,8 +940,8 @@
{
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]