Hi,

I think I already reported this here quite a while ago, but the change
was never committed and still sits in my local tree. Please review and
tell me if it is OK to push this change to the git repository.


Sven

 
>From 3ca602e2f767335d477a41789111a98d078064df Mon Sep 17 00:00:00 2001
From: Sven Neumann <s.neum...@raumfeld.com>
Date: Thu, 7 May 2009 13:00:03 +0200
Subject: [PATCH] libdirect: plugged small memory leak

---
 lib/direct/interface.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/direct/interface.c b/lib/direct/interface.c
index 7ae8ad8..db69789 100644
--- a/lib/direct/interface.c
+++ b/lib/direct/interface.c
@@ -124,6 +124,10 @@ DirectUnregisterInterface( DirectInterfaceFuncs *funcs )
           return;
      }
 
+     if (impl->filename) {
+          D_FREE( impl->filename );
+     }
+
      D_MAGIC_CLEAR( impl );
 
      D_FREE( impl );
-- 
1.5.6.3

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to