GNOME Bugzilla – Bug 669898
[PATCH] Fix a possible memory leak in gedit_document_output_stream_write()
Last modified: 2012-02-11 17:49:34 UTC
If gedit_document_output_stream_write() is called and the ostream is not initialized, g_iconv_open() fails (so gedit_document_output_stream_write() returns -1), and gedit_document_output_stream_write() is called again, then the `charset_conv` that was created during the previous initialization attempt would be leaked.
Created attachment 207352 [details] [review] Fix
You are a walking valgrind :P Committed, thanks!