Hello,
my question is about deallocation when using QDjangoQuerySet
Say i have this method
MyClass* GetMyClass(const char* something){
QDjangoQuerySet<MyClass> myClassSet;
myClassSet = myClassSet.filter( QDjangoWhere("something", QDjangoWhere::Equals, something) );
if(myClassSet.size()==0){
return NULL;
}else{
return myClassSet.at(0);
}
}
I then continue to work with MyClass pointer returned from GetMyClass, am i correct to assume, i have to delete the pointer to MyClass?
I am sorry if this is repost, i couldnt figure out the proper keyword for searching