Enlightenment CVS committal
Author : xcomputerman
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x.c ecore_x_dnd.c ecore_x_private.h
Log Message:
Plug memory leak
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- ecore_x.c 25 Dec 2004 15:15:29 -0000 1.57
+++ ecore_x.c 27 Dec 2004 18:28:13 -0000 1.58
@@ -381,6 +381,7 @@
_ecore_x_disp = NULL;
_ecore_x_event_handlers = NULL;
_ecore_x_selection_shutdown();
+ _ecore_x_dnd_shutdown();
if (_ecore_x_init_count < 0) _ecore_x_init_count = 0;
return _ecore_x_init_count;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_dnd.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ecore_x_dnd.c 4 Dec 2004 10:10:28 -0000 1.12
+++ ecore_x_dnd.c 27 Dec 2004 18:28:14 -0000 1.13
@@ -4,7 +4,7 @@
#include "Ecore_X_Atoms.h"
static Ecore_X_Selection_Data _xdnd_selection;
-static Ecore_X_DND_Protocol *_xdnd;
+static Ecore_X_DND_Protocol *_xdnd = NULL;
void
_ecore_x_dnd_init (void)
@@ -15,6 +15,15 @@
_xdnd->source = None;
_xdnd->dest = None;
_xdnd->state = ECORE_X_DND_IDLE;
+
+}
+
+void
+_ecore_x_dnd_shutdown(void)
+{
+ if(_xdnd)
+ free(_xdnd);
+ _xdnd = NULL;
}
void
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_private.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ecore_x_private.h 4 Dec 2004 10:10:29 -0000 1.33
+++ ecore_x_private.h 27 Dec 2004 18:28:14 -0000 1.34
@@ -163,5 +163,6 @@
void _ecore_x_dnd_init(void);
Ecore_X_DND_Protocol * _ecore_x_dnd_protocol_get(void);
void _ecore_x_dnd_drag(int x, int y);
+void _ecore_x_dnd_shutdown(void);
#endif
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs