[Pkg-wmaker-commits] [wmbiff] 17/92: wmbiff: Free memory when using a custom skin.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 02:59:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbiff.
commit 935dccafdfb6af1d343ba0da7a6c3fe6c0e47dd0
Author: Gabriel VLASIU <gabriel at vlasiu.net>
Date: Thu Apr 4 15:56:53 2013 +0300
wmbiff: Free memory when using a custom skin.
---
wmbiff/wmbiff.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index 2295f06..8a4fa07 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -88,6 +88,7 @@ static unsigned int num_mailboxes = 1;
static const int x_origin = 5;
static const int y_origin = 5;
static int forever = 1; /* keep running. */
+unsigned int custom_skin = 0; /* user has choose a custom skin */
extern Window win;
extern Window iconwin;
@@ -251,6 +252,7 @@ static int Read_Config_File(char *filename, int *loopinterval)
continue;
} else if (!strcmp(setting, "skinfile")) {
skin_filename = strdup_ordie(value);
+ custom_skin = 1;
continue;
} else if (!strcmp(setting, "certfile")) { /* not yet supported */
certificate_filename = strdup_ordie(value);
@@ -1407,6 +1409,8 @@ int main(int argc, const char *argv[])
// free resources
if (restart_args)
free(restart_args);
+ if (custom_skin)
+ free((void *)skin_filename);
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list