Skip to content

Commit

Permalink
[telepathy-gabble] Fixed memory leak in wocky_xmpp_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 25, 2015
1 parent eab08da commit fe13675
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rpm/telepathy-gabble.spec
Expand Up @@ -12,8 +12,9 @@ Source2: mktests.sh
Patch0: nemo-tests-dir-fix.patch
Patch1: 0001-Disable-parallel-build-for-extensions-directory.patch
Patch2: wocky-disable-gtkdoc.patch
Patch3: 0001-Change-default-keepalive-interval-to-2.5-minutes.patch
Patch4: 0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
Patch3: wocky-mem-leak.patch
Patch4: 0001-Change-default-keepalive-interval-to-2.5-minutes.patch
Patch5: 0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
Requires: telepathy-mission-control
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Expand Down Expand Up @@ -66,11 +67,12 @@ tests.xml for automated testing.
%patch1 -p1
cd lib/ext/wocky
%patch2 -p1
%patch3 -p1
cd ../../..
# 0001-Change-default-keepalive-interval-to-2.5-minutes.patch
%patch3 -p1
# 0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
%patch4 -p1
# 0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
%patch5 -p1

# >> setup
%__cp $RPM_SOURCE_DIR/mktests.sh tests/
Expand Down
12 changes: 12 additions & 0 deletions rpm/wocky-mem-leak.patch
@@ -0,0 +1,12 @@
diff --git a/wocky/wocky-xmpp-reader.c b/wocky/wocky-xmpp-reader.c
index f0eaa92..721e93d 100644
--- a/wocky/wocky-xmpp-reader.c
+++ b/wocky/wocky-xmpp-reader.c
@@ -328,6 +328,7 @@ wocky_xmpp_reader_finalize (GObject *object)
/* free any data held directly by the object here */
g_queue_free (priv->stanzas);
g_queue_free (priv->nodes);
+ g_free (priv->default_namespace);

if (priv->error != NULL)
g_error_free (priv->error);

0 comments on commit fe13675

Please sign in to comment.