[libpeas] Don't GC plugin loaders that fail
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Don't GC plugin loaders that fail
- Date: Fri, 18 Feb 2011 01:07:40 +0000 (UTC)
commit e4953c2dda244452a3883eb049241bff09a74123
Author: Garrett Regier <alias301 gmail com>
Date: Tue Feb 15 01:46:18 2011 -0800
Don't GC plugin loaders that fail
If a plugin loader fails then it is a NULL entry in the
loaders hashtable. So GC would segfault as it attempted
to dereference a NULL pointer.
libpeas/peas-engine.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 458bad9..1274887 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -295,7 +295,7 @@ static void
loader_garbage_collect (const gchar *id,
LoaderInfo *info)
{
- if (info->loader)
+ if (info != NULL && info->loader != NULL)
peas_plugin_loader_garbage_collect (info->loader);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]