gtk+ r20945 - in branches/gtk-2-12: . gtk
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20945 - in branches/gtk-2-12: . gtk
- Date: Sat, 2 Aug 2008 11:30:50 +0000 (UTC)
Author: tml
Date: Sat Aug 2 11:30:49 2008
New Revision: 20945
URL: http://svn.gnome.org/viewvc/gtk+?rev=20945&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:
branches/gtk-2-12/ChangeLog
branches/gtk-2-12/gtk/gtkprintoperation-win32.c
Modified: branches/gtk-2-12/gtk/gtkprintoperation-win32.c
==============================================================================
--- branches/gtk-2-12/gtk/gtkprintoperation-win32.c (original)
+++ branches/gtk-2-12/gtk/gtkprintoperation-win32.c Sat Aug 2 11:30:49 2008
@@ -916,8 +916,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]