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

Michael McConville mmcconville at mykolab.com
Thu Aug 13 12:54:43 EDT 2015


Changeset: c8b2d90fe0f736a65f06a39d1659b592f7dfe054
Author:	 Michael McConville <mmcconville at mykolab.com>
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;
 }
 
 /*



More information about the Commits mailing list