~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/02_fix_get_application_info_crash.patch

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-15 11:40:22 UTC
  • Revision ID: james.westby@ubuntu.com-20090615114022-kwq77u93ggurbp1c
Tags: 2.15.1-0ubuntu2
Add 02_fix_get_application_info_crash.patch: Fix crash in
gtk.RecentInfo.get_application_info(). Taken from upstream git, thanks to
Siegfried Gevatter for digging it out. (LP: #386035)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Description: Fix crash in gtk.RecentInfo.get_application_info() by not freeing an unowned string gtk/gtk.override 
 
2
# Ubuntu: LP: #386035
 
3
# Upstream: GNOME #585458, git 956592c614c567623510dccf5fc1edaee9c766c1
 
4
--- pygtk-2.15.1.orig/gtk/gtk.override
 
5
+++ pygtk-2.15.1/gtk/gtk.override
 
6
@@ -7549,7 +7549,8 @@
 
7
                                                &time_);
 
8
     if (ret) {
 
9
         py_ret = Py_BuildValue("(sii)", app_exec, count, time_);
 
10
-        g_free(app_exec);
 
11
+       /* Note that we mustn't free 'app_exec' even though it's not
 
12
+        * 'const'. See bug #585458. */
 
13
     } else {
 
14
         py_ret = Py_None;
 
15
     }