[grilo-plugins] lua-factory: Fix possible crash on exit
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lua-factory: Fix possible crash on exit
- Date: Mon, 8 Dec 2014 17:10:31 +0000 (UTC)
commit 13ff45c499df21c23f88b715f6c4bd4a5135e630
Author: Bastien Nocera <hadess hadess net>
Date: Mon Dec 8 18:04:52 2014 +0100
lua-factory: Fix possible crash on exit
GResource isn't a GObject, so use the correct unref function.
src/lua-factory/grl-lua-factory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c
index c4ff5cd..1f010f2 100644
--- a/src/lua-factory/grl-lua-factory.c
+++ b/src/lua-factory/grl-lua-factory.c
@@ -285,7 +285,7 @@ grl_lua_factory_source_new (gchar *lua_plugin_path,
g_clear_pointer (&source_tags, g_strfreev);
g_clear_object (&source_icon);
- g_object_set_data_full (G_OBJECT (source), "resources", resource, g_object_unref);
+ g_object_set_data_full (G_OBJECT (source), "resources", resource, g_resource_unref);
ret = lua_plugin_source_operations (L, source->priv->fn);
if (ret != LUA_OK)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]