sourceview: Fix a crash with Scintilla
commit7e4b69f831bd216f75ec9731b2df3df80f8d53d9
authorSébastien Granjoux <seb.sfo@free.fr>
Sat, 3 Dec 2011 13:56:26 +0000 (3 14:56 +0100)
committerSébastien Granjoux <seb.sfo@free.fr>
Sat, 3 Dec 2011 13:56:26 +0000 (3 14:56 +0100)
tree24e3d187b0410e2e32fb8f434da7a76a7be1a8ab
parent96b9a838fec324d1b1f7ea6b50fc66b9a17ab003
sourceview: Fix a crash with Scintilla

The implementation of ianjuta_document_get_filename in sourceview was returning
a string that the caller has to free while the documentation specify that
it is a constant string.
It causes a crash when using Scintilla due to this recent commit in the
document manager a0571b23499b308cd9bd02ecf71e30a6672947ef.
plugins/document-manager/anjuta-docman.c
plugins/document-manager/plugin.c
plugins/sourceview/sourceview-io.c
plugins/sourceview/sourceview-io.h
plugins/sourceview/sourceview-print.c
plugins/sourceview/sourceview.c