[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src mapsquare_walkable.cc,1.2,1.3 pre
From: |
Kai Sterker <address@hidden> |
Subject: |
[Adonthell-commits] CVS: adonthell/src mapsquare_walkable.cc,1.2,1.3 prefs.cc,1.26,1.27 py_callback.cc,1.8,1.9 python_class.cc,1.7,1.8 |
Date: |
Sat, 28 Sep 2002 13:21:52 -0400 |
Update of /cvsroot/adonthell/adonthell/src
In directory subversions:/tmp/cvs-serv17219
Modified Files:
mapsquare_walkable.cc prefs.cc py_callback.cc python_class.cc
Log Message:
FIXED a few issues with variables used before initialisation + a minor memleak
Index: mapsquare_walkable.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/mapsquare_walkable.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** mapsquare_walkable.cc 23 Jul 2001 20:02:52 -0000 1.2
--- mapsquare_walkable.cc 28 Sep 2002 17:21:50 -0000 1.3
***************
*** 43,46 ****
--- 43,48 ----
mapsquare_walkable_area::mapsquare_walkable_area ()
{
+ basex = 0;
+ basey = 0;
}
Index: prefs.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/prefs.cc,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** prefs.cc 15 Sep 2002 23:51:25 -0000 1.26
--- prefs.cc 28 Sep 2002 17:21:50 -0000 1.27
***************
*** 301,305 ****
int n, i = 1;
u_int32 major = 0, minor = 0, micro = 0, MAJOR, MINOR, MICRO;
! char suffix[16], SUFFIX[16];
string s, fname, version;
--- 301,305 ----
int n, i = 1;
u_int32 major = 0, minor = 0, micro = 0, MAJOR, MINOR, MICRO;
! char suffix[16] = "\0", SUFFIX[16] = "\0";
string s, fname, version;
Index: py_callback.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/py_callback.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** py_callback.cc 19 Aug 2002 19:57:29 -0000 1.8
--- py_callback.cc 28 Sep 2002 17:21:50 -0000 1.9
***************
*** 126,130 ****
if (instance == NULL)
{
! fprintf (stderr, "*** error: py_callback::get_state: Invalid
instance!");
return false;
}
--- 126,130 ----
if (instance == NULL)
{
! fprintf (stderr, "*** error: py_callback::get_state: Invalid
instance!\n");
return false;
}
***************
*** 137,141 ****
if (!PyCallable_Check (function))
{
! fprintf (stderr, "*** error: py_callback::get_state: Setting callback
' %s' failed!", name.c_str ());
return false;
}
--- 137,141 ----
if (!PyCallable_Check (function))
{
! fprintf (stderr, "*** error: py_callback::get_state: Setting callback
'%s' failed!\n", name.c_str ());
return false;
}
Index: python_class.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/python_class.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** python_class.cc 7 Apr 2002 11:56:29 -0000 1.7
--- python_class.cc 28 Sep 2002 17:21:50 -0000 1.8
***************
*** 42,45 ****
--- 42,46 ----
void python::cleanup ()
{
+ Py_XDECREF (module);
Py_Finalize ();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-commits] CVS: adonthell/src mapsquare_walkable.cc,1.2,1.3 prefs.cc,1.26,1.27 py_callback.cc,1.8,1.9 python_class.cc,1.7,1.8,
Kai Sterker <address@hidden> <=
- Prev by Date:
[Adonthell-commits] CVS: wastesedge/win32 COPYING,NONE,1.1 README.txt,1.3,1.4
- Next by Date:
[Adonthell-commits] CVS: adonthell/src dialog.cc,1.32,1.33 win_base.cc,1.2,1.3 win_base.h,1.22,1.23 win_manager.cc,1.10,1.11
- Previous by thread:
[Adonthell-commits] CVS: wastesedge/win32 COPYING,NONE,1.1 README.txt,1.3,1.4
- Next by thread:
[Adonthell-commits] CVS: adonthell/src dialog.cc,1.32,1.33 win_base.cc,1.2,1.3 win_base.h,1.22,1.23 win_manager.cc,1.10,1.11
- Index(es):