Plug memory leak. (#140775, John Ehresman)
2004-04-29 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory leak. (#140775, John Ehresman)
This commit is contained in:
parent
08580edf16
commit
f215db2b12
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-29 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
|
||||||
|
leak. (#140775, John Ehresman)
|
||||||
|
|
||||||
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-29 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
|
||||||
|
leak. (#140775, John Ehresman)
|
||||||
|
|
||||||
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-29 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
|
||||||
|
leak. (#140775, John Ehresman)
|
||||||
|
|
||||||
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-29 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
|
||||||
|
leak. (#140775, John Ehresman)
|
||||||
|
|
||||||
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2004-04-29 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
|
||||||
|
leak. (#140775, John Ehresman)
|
||||||
|
|
||||||
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
|
||||||
|
@ -361,7 +361,7 @@ gdk_win32_gc_values_to_win32values (GdkGCValues *values,
|
|||||||
{
|
{
|
||||||
g_free (win32_gc->pen_dashes);
|
g_free (win32_gc->pen_dashes);
|
||||||
win32_gc->pen_dashes = NULL;
|
win32_gc->pen_dashes = NULL;
|
||||||
win32_gc->pen_num_dashes = 0;
|
win32_gc->pen_num_dashes = 0;
|
||||||
}
|
}
|
||||||
win32_gc->pen_style &= ~(PS_STYLE_MASK);
|
win32_gc->pen_style &= ~(PS_STYLE_MASK);
|
||||||
win32_gc->pen_style |= PS_SOLID;
|
win32_gc->pen_style |= PS_SOLID;
|
||||||
@ -593,6 +593,8 @@ gdk_win32_gc_set_dashes (GdkGC *gc,
|
|||||||
|
|
||||||
win32_gc->pen_style |= (PS_GEOMETRIC | PS_USERSTYLE);
|
win32_gc->pen_style |= (PS_GEOMETRIC | PS_USERSTYLE);
|
||||||
win32_gc->pen_num_dashes = n;
|
win32_gc->pen_num_dashes = n;
|
||||||
|
if (win32_gc->pen_dashes != NULL)
|
||||||
|
g_free (win32_gc->pen_dashes);
|
||||||
win32_gc->pen_dashes = g_new (DWORD, n);
|
win32_gc->pen_dashes = g_new (DWORD, n);
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
win32_gc->pen_dashes[i] = dash_list[i];
|
win32_gc->pen_dashes[i] = dash_list[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user