[rygel/rygel-0-28] core: Fix small memory leak with XPath use
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-28] core: Fix small memory leak with XPath use
- Date: Tue, 9 Feb 2016 22:41:37 +0000 (UTC)
commit 9a5170cf61be30682526751997f20dd5dc77f7b3
Author: Jens Georg <mail jensge org>
Date: Tue Feb 9 20:33:34 2016 +0100
core: Fix small memory leak with XPath use
Signed-off-by: Jens Georg <mail jensge org>
src/librygel-core/rygel-description-file.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/librygel-core/rygel-description-file.vala b/src/librygel-core/rygel-description-file.vala
index 3190e8e..605a96a 100644
--- a/src/librygel-core/rygel-description-file.vala
+++ b/src/librygel-core/rygel-description-file.vala
@@ -318,7 +318,10 @@ public class Rygel.DescriptionFile : Object {
// Check if the X_DLNADOC node has already dev_cap
// dlnadoc_xpath checks for a X_DLNADOC element that contains a
// capablity. We can return if that's the case.
- if (this.apply_xpath (dlnadoc_xpath, null)) {
+ Xml.XPath.Object *tmp;
+ if (this.apply_xpath (dlnadoc_xpath, out tmp)) {
+ delete tmp;
+
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]