Changeset 40782
- Timestamp:
- Jun 6, 2019, 5:21:43 PM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src/kapa2
- Files:
-
- 7 edited
-
include/prototypes.h (modified) (3 diffs)
-
src/CheckVisual.c (modified) (1 diff)
-
src/Layout.c (modified) (1 diff)
-
src/LoadLabels.c (modified) (1 diff)
-
src/SetUpGraphic.c (modified) (3 diffs)
-
src/bDrawImage.c (modified) (1 diff)
-
src/kapa.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/kapa2/include/prototypes.h
r40781 r40782 3 3 int args PROTO((int *argc, char **argv)); 4 4 void SetUpGraphic PROTO((int *argc, char **argv)); 5 void FreeGraphic PROTO((void)); 5 6 void DefineLayout PROTO((int, char **)); 6 7 int EventLoop PROTO((void)); … … 29 30 void MapWindow PROTO((Graphic *graphic)); 30 31 void CheckVisual PROTO((Graphic *graphic, int *argc, char **argv)); 31 void FreeVisual PROTO((Graphic *graphic));32 32 33 33 /* X drawing utilities */ … … 116 116 117 117 void InitLayout PROTO((int argc, char **argv)); 118 void FreeLayout PROTO((void)); 118 119 119 120 /* PS drawing utilities */ -
branches/eam_branches/ohana.20190329/src/kapa2/src/CheckVisual.c
r40781 r40782 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/Layout.c
r35237 r40782 45 45 AddSection ("default", 0.0, 0.0, 1.0, 1.0, -1); 46 46 } 47 48 void FreeLayout (void) { 49 FreeSections (); 50 FreeRotFonts (); 51 } -
branches/eam_branches/ohana.20190329/src/kapa2/src/LoadLabels.c
r39577 r40782 26 26 label[Nbytes] = 0; 27 27 28 FREE (label); 29 28 30 c = GetRotFont (&size); 29 31 -
branches/eam_branches/ohana.20190329/src/kapa2/src/SetUpGraphic.c
r40731 r40782 32 32 graphic->pixels = NULL; 33 33 34 graphic->smooth_sigma = 0.0; 35 34 36 if (!USE_XWINDOW) { 35 37 ALLOCATE (graphic[0].pixels, unsigned long, NPIXELS_STATIC); … … 50 52 CheckVisual (graphic, argc, argv); 51 53 CheckColors (graphic, argc, argv); 52 53 graphic->smooth_sigma = 0.0;54 54 55 55 icon.width = icon_width; … … 97 97 return TRUE; 98 98 } 99 100 void FreeGraphic () { 101 free (graphic->pixels); 102 free (graphic->cmap); 103 free (graphic->color); 104 free (graphic->colormapName); 105 free (graphic); 106 } -
branches/eam_branches/ohana.20190329/src/kapa2/src/bDrawImage.c
r40781 r40782 187 187 188 188 free (data); 189 190 // XDestroyImage (pix);191 189 } 192 190 -
branches/eam_branches/ohana.20190329/src/kapa2/src/kapa.c
r40781 r40782 10 10 EventLoop (); 11 11 12 // free things related to the graphic:13 {14 Graphic *graphic = GetGraphic ();15 FreeVisual(graphic);16 }17 18 12 CloseDisplay (); 13 14 // free things 15 FreeLayout(); 16 FreeGraphic(); 17 FREE (NAME_WINDOW); 18 19 19 MemoryDumpAndExit (); 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.
