[perl-Gtk2] Fix memory handling in Gtk2::RecentInfo->get_application_info
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Fix memory handling in Gtk2::RecentInfo->get_application_info
- Date: Thu, 22 Apr 2010 23:08:37 +0000 (UTC)
commit 89e93c99f60f7ff3cffa17200d2f401fc1d56352
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Thu Apr 22 21:51:29 2010 +0200
Fix memory handling in Gtk2::RecentInfo->get_application_info
The docs for gtk_recent_info_get_application_info used to say that you
should free app_exec after use, but that was incorrect. Adapt.
https://bugzilla.gnome.org/show_bug.cgi?id=584832
xs/GtkRecentManager.xs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/xs/GtkRecentManager.xs b/xs/GtkRecentManager.xs
index 87f1c57..44b245f 100644
--- a/xs/GtkRecentManager.xs
+++ b/xs/GtkRecentManager.xs
@@ -356,7 +356,7 @@ gtk_recent_info_get_application_info (info, app_name)
GtkRecentInfo *info
const gchar *app_name
PREINIT:
- gchar *app_exec;
+ const gchar *app_exec;
guint count;
time_t timestamp;
gboolean res;
@@ -371,7 +371,6 @@ gtk_recent_info_get_application_info (info, app_name)
PUSHs (sv_2mortal (newSVGChar (app_exec)));
PUSHs (sv_2mortal (newSVuv (count)));
PUSHs (sv_2mortal (newSViv (timestamp)));
- g_free (app_exec); /* don't leak */
=for apidoc
=for signature (applications) = $info->get_applications
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]