diff options
| -rw-r--r-- | meta/packages/gtk+/gtk+-2.14.2/0001-bgo-584832-Duplicate-the-exec-string-returned-by-gtk.patch | 31 | ||||
| -rw-r--r-- | meta/packages/gtk+/gtk+_2.14.2.bb | 3 |
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/packages/gtk+/gtk+-2.14.2/0001-bgo-584832-Duplicate-the-exec-string-returned-by-gtk.patch b/meta/packages/gtk+/gtk+-2.14.2/0001-bgo-584832-Duplicate-the-exec-string-returned-by-gtk.patch new file mode 100644 index 0000000000..e0d6ab9522 --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.14.2/0001-bgo-584832-Duplicate-the-exec-string-returned-by-gtk.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 69b9441eab2a7215509687dc22b48b6f212d22aa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rob Bradford <rob@linux.intel.com> | ||
| 3 | Date: Thu, 4 Jun 2009 15:43:20 +0100 | ||
| 4 | Subject: [PATCH] =?utf-8?q?bgo#584832=20=E2=80=93=20Duplicate=20the=20exec=20string=20returned=20by=20gtk=5Frecent=5Finfo=5Fget=5Fapplication=5Finfo?= | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=utf-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | This function states that the caller is responsible for freeing the string | ||
| 10 | passed returned by reference. Unfortunately if you do this you get a crash | ||
| 11 | since the internal value is returned without being duplicated. | ||
| 12 | --- | ||
| 13 | gtk/gtkrecentmanager.c | 2 +- | ||
| 14 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c | ||
| 17 | index 317b3d5..d062572 100644 | ||
| 18 | --- a/gtk/gtkrecentmanager.c | ||
| 19 | +++ b/gtk/gtkrecentmanager.c | ||
| 20 | @@ -1764,7 +1764,7 @@ gtk_recent_info_get_application_info (GtkRecentInfo *info, | ||
| 21 | } | ||
| 22 | |||
| 23 | if (app_exec) | ||
| 24 | - *app_exec = ai->exec; | ||
| 25 | + *app_exec = g_strdup (ai->exec); | ||
| 26 | |||
| 27 | if (count) | ||
| 28 | *count = ai->count; | ||
| 29 | -- | ||
| 30 | 1.6.3.1 | ||
| 31 | |||
diff --git a/meta/packages/gtk+/gtk+_2.14.2.bb b/meta/packages/gtk+/gtk+_2.14.2.bb index f5190c5849..494355cd7a 100644 --- a/meta/packages/gtk+/gtk+_2.14.2.bb +++ b/meta/packages/gtk+/gtk+_2.14.2.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | require gtk+.inc | 1 | require gtk+.inc |
| 2 | 2 | ||
| 3 | PR = "r2" | 3 | PR = "r3" |
| 4 | 4 | ||
| 5 | SRC_URI = "http://download.gnome.org/sources/gtk+/2.14/gtk+-${PV}.tar.bz2 \ | 5 | SRC_URI = "http://download.gnome.org/sources/gtk+/2.14/gtk+-${PV}.tar.bz2 \ |
| 6 | file://xsettings.patch;patch=1 \ | 6 | file://xsettings.patch;patch=1 \ |
| @@ -10,6 +10,7 @@ SRC_URI = "http://download.gnome.org/sources/gtk+/2.14/gtk+-${PV}.tar.bz2 \ | |||
| 10 | file://cellrenderer-cairo.patch;patch=1;pnum=0 \ | 10 | file://cellrenderer-cairo.patch;patch=1;pnum=0 \ |
| 11 | file://entry-cairo.patch;patch=1;pnum=0 \ | 11 | file://entry-cairo.patch;patch=1;pnum=0 \ |
| 12 | file://toggle-font.diff;patch=1;pnum=0 \ | 12 | file://toggle-font.diff;patch=1;pnum=0 \ |
| 13 | file://0001-bgo-584832-Duplicate-the-exec-string-returned-by-gtk.patch;patch=1 \ | ||
| 13 | # TO MERGE | 14 | # TO MERGE |
| 14 | # file://filesystem-volumes.patch;patch=1 \ | 15 | # file://filesystem-volumes.patch;patch=1 \ |
| 15 | # file://filechooser-props.patch;patch=1 \ | 16 | # file://filechooser-props.patch;patch=1 \ |
