Changeset 40781
- Timestamp:
- Jun 6, 2019, 11:31:11 AM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src/kapa2
- Files:
-
- 7 edited
-
include/prototypes.h (modified) (1 diff)
-
src/CheckVisual.c (modified) (1 diff)
-
src/JPEGit24.c (modified) (1 diff)
-
src/PPMit.c (modified) (1 diff)
-
src/Refresh.c (modified) (1 diff)
-
src/bDrawImage.c (modified) (2 diffs)
-
src/kapa.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/kapa2/include/prototypes.h
r40780 r40781 29 29 void MapWindow PROTO((Graphic *graphic)); 30 30 void CheckVisual PROTO((Graphic *graphic, int *argc, char **argv)); 31 void FreeVisual PROTO((Graphic *graphic)); 31 32 32 33 /* X drawing utilities */ -
branches/eam_branches/ohana.20190329/src/kapa2/src/CheckVisual.c
r39225 r40781 195 195 } 196 196 } 197 198 void FreeVisual (Graphic *graphic) { 199 free (graphic[0].pixels); 200 free (graphic[0].cmap); 201 } -
branches/eam_branches/ohana.20190329/src/kapa2/src/JPEGit24.c
r34088 r40781 212 212 } 213 213 bDrawBufferFree (buffer); 214 free (palette); 214 215 } 215 216 -
branches/eam_branches/ohana.20190329/src/kapa2/src/PPMit.c
r29938 r40781 46 46 47 47 bDrawBufferFree (buffer); 48 free (palette); 49 48 50 return (TRUE); 49 51 } -
branches/eam_branches/ohana.20190329/src/kapa2/src/Refresh.c
r40778 r40781 35 35 bDrawXimage (buffer); 36 36 bDrawBufferFree (buffer); 37 free (palette); 37 38 38 39 // draw image tool for all sections -
branches/eam_branches/ohana.20190329/src/kapa2/src/bDrawImage.c
r40731 r40781 185 185 186 186 XPutImage (graphic[0].display, graphic[0].window, graphic[0].gc, pix, 0, 0, 1, 1, buffer->Nx, buffer->Ny); 187 188 free (data); 189 190 // XDestroyImage (pix); 187 191 } 188 192 … … 218 222 } 219 223 bDrawBufferFree (buffer); 224 free (palette); 220 225 } 221 226 -
branches/eam_branches/ohana.20190329/src/kapa2/src/kapa.c
r40780 r40781 10 10 EventLoop (); 11 11 12 // free things related to the graphic: 13 { 14 Graphic *graphic = GetGraphic (); 15 FreeVisual(graphic); 16 } 17 12 18 CloseDisplay (); 13 19 MemoryDumpAndExit ();
Note:
See TracChangeset
for help on using the changeset viewer.
