[pygtk] Don't free a string we don't own
- From: Paul Pogonyshev <paulp src gnome org>
- To: svn-commits-list gnome org
- Subject: [pygtk] Don't free a string we don't own
- Date: Thu, 11 Jun 2009 15:02:16 -0400 (EDT)
commit 956592c614c567623510dccf5fc1edaee9c766c1
Author: Paul Pogonyshev <pogonyshev gmx net>
Date: Thu Jun 11 21:53:51 2009 +0300
Don't free a string we don't own
Fixes bug #585458.
gtk/gtk.override | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtk.override b/gtk/gtk.override
index 8d7a0f5..5fa5771 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -7549,7 +7549,8 @@ _wrap_gtk_recent_info_get_application_info(PyGObject *self, PyObject *args,
&time_);
if (ret) {
py_ret = Py_BuildValue("(sii)", app_exec, count, time_);
- g_free(app_exec);
+ /* Note that we mustn't free 'app_exec' even though it's not
+ * 'const'. See bug #585458. */
} else {
py_ret = Py_None;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]