/soc/2015/igor.gajowiak/chatlog: 63446af3b1c7: Fixed a reference...

Igor Gajowiak <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 63446af3b1c70e3ebcc25f8b173c3e49ac510e44
Author:	 Igor Gajowiak <[email protected]>
Date:	 2015-07-30 02:06 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/63446af3b1c7

Description:

Fixed a reference counter bug.

diffstat:

 libpurple/plugins/log/logsqlite.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/plugins/log/logsqlite.c b/libpurple/plugins/log/logsqlite.c
--- a/libpurple/plugins/log/logsqlite.c
+++ b/libpurple/plugins/log/logsqlite.c
@@ -726,6 +726,7 @@ sqlitelog_execute_get_msgs_query(sqlite3
 		g_object_set_data(G_OBJECT(msg), SQLITELOG_MESSAGE_ID_ATTR,
 			GUINT_TO_POINTER(id));
 
+		g_object_ref(G_OBJECT(msg));
 		messages = g_list_prepend(messages, msg);
 	}
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.