/pidgin/main: c8b2d90fe0f7: Fix a minor memory leak and replace ...

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: c8b2d90fe0f736a65f06a39d1659b592f7dfe054
Author:	 Michael McConville <[email protected]>
Date:	 2015-08-13 12:53 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/c8b2d90fe0f7

Description:

Fix a minor memory leak and replace space-indentation with a tab

diffstat:

 libpurple/protocols/novell/nmrtf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff --git a/libpurple/protocols/novell/nmrtf.c b/libpurple/protocols/novell/nmrtf.c
--- a/libpurple/protocols/novell/nmrtf.c
+++ b/libpurple/protocols/novell/nmrtf.c
@@ -658,11 +658,11 @@ rtf_flush_data(NMRtfContext *ctx)
 			status = NMRTF_CONVERT_ERROR;
 			purple_debug_info("novell", "failed to convert data! error code = %d msg = %s\n",
 							gerror->code, gerror->message);
-			g_free(gerror);
 		}
 	}
+	g_error_free(gerror);
 
-    return status;
+	return status;
 }
 
 /*

_______________________________________________
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.