Don't return a static variable as the window device.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-11-08 16:14:53 +00:00
parent ebfac7ae21
commit ca51d23b97
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-11-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XGServerWindow.m (-windowDevice:): Don't return a
static variable as the window device.
2009-11-05 Fred Kiefer <FredKiefer@gmx.de> 2009-11-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoGState.m: Set the colour for all text drawing. * Source/cairo/CairoGState.m: Set the colour for all text drawing.

View file

@ -3835,7 +3835,7 @@ static BOOL didCreatePixmaps;
- (void *) windowDevice: (int)win - (void *) windowDevice: (int)win
{ {
static Window ptrloc; Window ptrloc;
gswindow_device_t *window; gswindow_device_t *window;
window = WINDOW_WITH_TAG(win); window = WINDOW_WITH_TAG(win);
@ -3843,7 +3843,7 @@ static BOOL didCreatePixmaps;
ptrloc = window->ident; ptrloc = window->ident;
else else
ptrloc = 0; ptrloc = 0;
return &ptrloc; return (void *)ptrloc;
} }
/* Cursor Ops */ /* Cursor Ops */