summaryrefslogtreecommitdiffstats
path: root/hacks/glx/fps-gl.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:41 +0100
committerSimon Rettberg2019-02-18 11:55:41 +0100
commitae69a754244c4e475c8d2591772ca8e005071d83 (patch)
tree58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /hacks/glx/fps-gl.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'hacks/glx/fps-gl.c')
-rw-r--r--hacks/glx/fps-gl.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/hacks/glx/fps-gl.c b/hacks/glx/fps-gl.c
index eb6b6de..b8cbb25 100644
--- a/hacks/glx/fps-gl.c
+++ b/hacks/glx/fps-gl.c
@@ -1,4 +1,4 @@
-/* fps, Copyright (c) 2001-2015 Jamie Zawinski <jwz@jwz.org>
+/* fps, Copyright (c) 2001-2018 Jamie Zawinski <jwz@jwz.org>
* Draw a frames-per-second display (Xlib and OpenGL).
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@ -96,3 +96,16 @@ xlockmore_gl_draw_fps (ModeInfo *mi)
st->string);
}
}
+
+void
+xlockmore_gl_free_fps (fps_state *st)
+{
+ gl_fps_data *data = (gl_fps_data *) st->gl_fps_data;
+ if (data)
+ {
+ if (data->texfont) free_texture_font (data->texfont);
+ free (data);
+ st->gl_fps_data = 0;
+ }
+ fps_free (st);
+}