summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r--recordmydesktop/src/Makefile.am1
-rw-r--r--recordmydesktop/src/cleanup.c41
-rw-r--r--recordmydesktop/src/initialize_data.c8
-rw-r--r--recordmydesktop/src/initialize_data.h7
4 files changed, 15 insertions, 42 deletions
diff --git a/recordmydesktop/src/Makefile.am b/recordmydesktop/src/Makefile.am
index a939fe8..55f7566 100644
--- a/recordmydesktop/src/Makefile.am
+++ b/recordmydesktop/src/Makefile.am
@@ -4,7 +4,6 @@ recordmydesktop_SOURCES = \
cache_audio.c \
cache_frame.c \
capture_sound.c \
- cleanup.c \
encode_cache.c \
encode_image_buffer.c \
encode_sound_buffer.c \
diff --git a/recordmydesktop/src/cleanup.c b/recordmydesktop/src/cleanup.c
deleted file mode 100644
index 26b6e1f..0000000
--- a/recordmydesktop/src/cleanup.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/******************************************************************************
-* recordMyDesktop *
-*******************************************************************************
-* *
-* Copyright (C) 2006,2007,2008 John Varouhakis *
-* *
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-* This program is distributed in the hope that it will be useful, *
-* but WITHOUT ANY WARRANTY; without even the implied warranty of *
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-* GNU General Public License for more details. *
-* *
-* You should have received a copy of the GNU General Public License *
-* along with this program; if not, write to the Free Software *
-* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
-* *
-* *
-* *
-* For further information contact me at johnvarouhakis@gmail.com *
-******************************************************************************/
-
-#include "recordmydesktop.h"
-
-void CleanUp(void){
-
- free(yblocks);
- free(ublocks);
- free(vblocks);
-
-}
-
-
-
-
-
-
diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c
index 811f6fe..2b2bb6e 100644
--- a/recordmydesktop/src/initialize_data.c
+++ b/recordmydesktop/src/initialize_data.c
@@ -233,3 +233,11 @@ void SetupDefaultArgs(ProgArgs *args) {
args->filename = (char *) malloc(8);
strcpy(args->filename, "out.ogv");
}
+
+void CleanUp(void){
+
+ free(yblocks);
+ free(ublocks);
+ free(vblocks);
+
+}
diff --git a/recordmydesktop/src/initialize_data.h b/recordmydesktop/src/initialize_data.h
index dee0ae7..3ffc244 100644
--- a/recordmydesktop/src/initialize_data.h
+++ b/recordmydesktop/src/initialize_data.h
@@ -51,5 +51,12 @@ int InitializeData(ProgData *pdata,
*/
void SetupDefaultArgs(ProgArgs *args);
+/**
+* Currently only frees some memory
+* (y,u,v blocks)
+*
+*/
+void CleanUp(void);
+
#endif
© All Rights Reserved