summaryrefslogtreecommitdiff
path: root/pango/querymodules.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/querymodules.c')
-rw-r--r--pango/querymodules.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/querymodules.c b/pango/querymodules.c
index 7ce2feb5..58945522 100644
--- a/pango/querymodules.c
+++ b/pango/querymodules.c
@@ -102,7 +102,8 @@ query_module (const char *dir, const char *name)
}
g_free (path);
- g_module_close (module);
+ if (module)
+ g_module_close (module);
}
int main (int argc, char **argv)