Merge lp:~andi5/launchpad-integration/memory-fix into lp:launchpad-integration

Proposed by andi5
Status: Merged
Merged at revision: 152
Proposed branch: lp:~andi5/launchpad-integration/memory-fix
Merge into: lp:launchpad-integration
Diff against target: 44 lines (+11/-3)
1 file modified
lib/launchpad-integration.c (+11/-3)
To merge this branch: bzr merge lp:~andi5/launchpad-integration/memory-fix
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+32052@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/launchpad-integration.c'
--- lib/launchpad-integration.c 2010-05-26 07:21:53 +0000
+++ lib/launchpad-integration.c 2010-08-08 16:18:44 +0000
@@ -13,6 +13,14 @@
1313
14static char *sourcepackagename = NULL;14static char *sourcepackagename = NULL;
1515
16static gboolean
17have_program_in_path (const char *name)
18{
19 gchar *path = g_find_program_in_path (name);
20 g_free (path);
21 return path != NULL;
22}
23
16void24void
17launchpad_integration_set_sourcepackagename (const char *name)25launchpad_integration_set_sourcepackagename (const char *name)
18{26{
@@ -182,7 +190,7 @@
182void190void
183launchpad_integration_add_ui (GtkUIManager *ui, const char *path)191launchpad_integration_add_ui (GtkUIManager *ui, const char *path)
184{192{
185 if (!g_find_program_in_path ("launchpad-integration")) {193 if (!have_program_in_path ("launchpad-integration")) {
186 return;194 return;
187 }195 }
188196
@@ -233,7 +241,7 @@
233 gboolean separator_before,241 gboolean separator_before,
234 gboolean separator_after)242 gboolean separator_after)
235{243{
236 if (!g_find_program_in_path ("launchpad-integration")) {244 if (!have_program_in_path ("launchpad-integration")) {
237 return;245 return;
238 }246 }
239247
@@ -298,7 +306,7 @@
298 gboolean separator_before,306 gboolean separator_before,
299 gboolean separator_after)307 gboolean separator_after)
300{308{
301 if (!g_find_program_in_path ("launchpad-integration")) {309 if (!have_program_in_path ("launchpad-integration")) {
302 return;310 return;
303 }311 }
304312

Subscribers

People subscribed via source and target branches

to all changes: