diff options
author | marcus <marcus@FreeBSD.org> | 2005-11-18 06:47:56 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-11-18 06:47:56 +0800 |
commit | 28f7dcd7411489298d711e6ff549b705a7408288 (patch) | |
tree | d68039693c6b0c7440f360c55594bda47faf0e39 /games/atomix | |
parent | 3a3adcefa733043eab07e46da98b8133ce22cf9d (diff) | |
download | freebsd-ports-gnome-28f7dcd7411489298d711e6ff549b705a7408288.tar.gz freebsd-ports-gnome-28f7dcd7411489298d711e6ff549b705a7408288.tar.zst freebsd-ports-gnome-28f7dcd7411489298d711e6ff549b705a7408288.zip |
Fix a crash on startup if ~/.atomix does not already exist.
Diffstat (limited to 'games/atomix')
-rw-r--r-- | games/atomix/Makefile | 1 | ||||
-rw-r--r-- | games/atomix/files/patch-level-manager.c | 15 | ||||
-rw-r--r-- | games/atomix/files/patch-theme-manager.c | 15 |
3 files changed, 31 insertions, 0 deletions
diff --git a/games/atomix/Makefile b/games/atomix/Makefile index 3017c4cbb51c..8962f47fe96b 100644 --- a/games/atomix/Makefile +++ b/games/atomix/Makefile @@ -8,6 +8,7 @@ PORTNAME= atomix PORTVERSION= 1.2.4 +PORTREVISION= 1 CATEGORIES= games gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R} diff --git a/games/atomix/files/patch-level-manager.c b/games/atomix/files/patch-level-manager.c new file mode 100644 index 000000000000..573ce8c66552 --- /dev/null +++ b/games/atomix/files/patch-level-manager.c @@ -0,0 +1,15 @@ +--- src/level-manager.c.orig Thu Nov 17 17:45:18 2005 ++++ src/level-manager.c Thu Nov 17 17:45:31 2005 +@@ -232,10 +232,10 @@ static void search_level_in_dir (LevelMa + g_free (levelname); + } + } ++ g_free (dent); ++ closedir (dir); + } + +- g_free (dent); +- closedir (dir); + } + + static gchar *lookup_level_name (gchar *filename) diff --git a/games/atomix/files/patch-theme-manager.c b/games/atomix/files/patch-theme-manager.c new file mode 100644 index 000000000000..185e64af8c57 --- /dev/null +++ b/games/atomix/files/patch-theme-manager.c @@ -0,0 +1,15 @@ +--- src/theme-manager.c.orig Thu Nov 17 17:43:33 2005 ++++ src/theme-manager.c Thu Nov 17 17:43:58 2005 +@@ -168,10 +168,10 @@ static void search_themes_in_dir (ThemeM + g_free (subdirpath); + } + } ++ g_free (dent); ++ closedir (dir); + } + +- g_free (dent); +- closedir (dir); + } + + static void add_theme (ThemeManager *tm, gchar *themename, gchar *dirpath) |